I bet you're using a twenty year old C++ compiler, though.
If you want to convert an int into a char, you've got a problem; how would that work for any int that isn't zero to nine? Given that a char is a single character, what would happen to the number 10?