convert 0, "0", "true", etc. to boolean

In rails 2, you can use
ActiveRecord::ConnectionAdapters::Column.value_to_boolean("0") for
1,0,'true','false','1','0', 't', and 'f'.