# File lib/active_record/connection_adapters/mysql_adapter.rb, line 360 def type_cast(value) return if value.nil? value.to_f end