Trap unexpected data types