Cast error: Cannot cast Int to Char. 1 1