I think OpenERP already takes advantage of most of the type conversions that Postgres handles, so maybe we should not make this generic before we find another exception?