Cast error: Cannot cast Char to Int. 4 4