Rails type cast

ActiveModel::Type::Boolean.new.cast
ActiveModel::Type::Integer.new.cast