Made type validation opt-in by implementing MTLTypeValidation protocol