Simplify type validation.