Cast to VARCHAR for ILIKE queries

READY

Cast columns to VARCHAR to avoid a Postgresql error when searching with an ILIKE against a numeric or boolean field.

It's imperfect, and could all stand some refactoring - I may tinker with that soon - but this works.