warn instead of raising TypeError if the datatype cannot be found