Avoid type mismatch