Check the classType is valid.