Added toParam() for use with e.g. node-postgres' parameterized queries