Não é possível invocar tostring () no tipo primitivo INT

int foo = 12345;
String foo_String = Integer.toString(foo);
Jolly Jaguar