Cast case-sensitive fields correctly.