You can get the value of other primitive data types as a String using one the String class's valueOf methods.
For example:
int i = 42;
String string = String.valueOf(i);
//string now equals "42”.
This method is also overloaded for other datatypes, such as float, double, boolean, and ...