If you have variable x of type Int, you can call toString on it to get its string representation.
val x = 42
x.toString // gives "42"
That gives you the string. Of course, you can use toString on any Scala “thing”–I’m avoiding the loaded object word.