global

def to_boolean(value)

expects that the values have been checked with boolean?
def to_boolean(value)
  value.casecmp('true') == 0
end