Implement per-column MySQL CAST rules.