You could cast it into a std::string and set it as text of the sf::String.
// Converts an int into a string
static inline std::string int2Str(int x)
{
std::stringstream type;
type << x;
return type.str();
}
Sorry to bump an old thread, but this was the exact problem I was working on. Unfortunately I ran into a problem using the quoted code: I get "incomplete type is not allowed" with regards to the "type" in that code.
EDIT: *sigh* my bad, I assumed that StringStream would be included in iostream.