Cast columns only for PostgreSQL when filtering.
Merge pull request #36 from tortuetorche/patch-1

When filtering, cast columns only for PostgreSQL.