Fix so identity fields are cast to string to prevent "Column X cannot be null" errors.