typecast array to text[]