after changing the value of the int, cast it to a char: (char)50 is '2'