Cast 'object' type as hstore when performing query