Inline PG array type casting helper
Merge pull request #15607 from sgrif/sg-array-type-cast

Inline PG array type casting helper