Properly upconvert from char to int