pub fn to_char(val: ObjectRef) -> RuntimeResult<char>