Passing CAST(foo AS type) as a relationship condition in DBIx::Class Passing CAST(foo AS type) as a relationship condition in DBIx::Class postgresql postgresql