Adds Ruby->PostgreSQL type-casting