For SQL CAST expressions, Sequel provides a cast method that you can call on many object types to cast them to the given SQL type.