Created teal:not_of_type/2 function.