#373225 by Josh Waihi: Make PostgreSQL cast values when changing database columns to prevent data loss.