valid enumclass force datatype to be enum