Use implicit casting

Got rid of unnecessary explicit char to int cast.