The two types of int and String are different, and String is not the parent class of int, so this assignment cannot be directly realized.
You can convert int into String, for example:
int n = 8;
String s = ""+n;