two methods to transfer between integer and string