Postgres Function Select Into Arraylist Cannot Be Converted