Hi list I need to convert integers to booleans and vice verca. We've got this in the Boolean class: true.binaryValue // returns 1 But I did not find anything equivalent to: 1.asBoolean I could of course just make an if statement, but it would probably be faster and nicer if 0.asBoolean or 1.booleanValue would exist. Or does it maybe exist? I looked at the source of Integer, SimpleNumber and Number. cheers thor |