Raise more informative exception for disallowed data types