Moved char to int conversion