Figured out a way to convert char to int.