'type_cast' to 'type_cast_for_database'

 for Rails 4.2.0 rc3