Inline PG array type casting helper