Integer i = 12; String s = i.format(); System.debug(s);
String s = '12'; Integer i = Integer.valueof(s); System.debug(i);