Check that categorical data is of uniform type