I need to change the data type of a column from _float8 to int4
ALTER TABLE "table" ALTER COLUMN "col" SET DATA TYPE int4;
results in column "col" cannot be cast automatically to type integer
ALTER TABLE "table" ALTER COLUMN "col" SET DATA TYPE int4 USING (col::integer);
results in cannot cast type double precision[] to integer
any ideas?