Typecast support for booleans in Ruby