Enhanced data type checking with more types and logic for handling more than one type found.