Would this be better as a getter?  Or just to use Type.enumIndex() in the places where it is needed?