Type mismatch: cannot convert from long to char An explicit cast would be required to convert the literal long into a char.