extend toString to print values for other data types (categorical for
example)