java.lang.classcastexception: java.lang.integer cannot be cast to java.lang.string
No, Integer and String are different types.
To convert an integer to string use: String.valueOf(integer),
or Integer.toString(integer) for primitive,
or Integer.toString() for the object.