When I get data from a postgresql database with pg_query,pg_fetch_assoc all numeric fields get returned as strings. Is there a way around this or do I have to typecast every
That's what PHP does. From the manual:
Each value in the array is represented as a string.