The array_type() function returns the type of the array.
int = array_type(array input);
The input value specifies the array for which to get the type.
select array_type(array(4));
array_type
------------
4
(1 row)
select array_type(col2)from array_t;
array_type
------------
2
(1 row)