You mean the original type of the value in enum, that is, int. The default value is increased by 1 starting from 0, but it can be changed manually. To view the original value, you can write:
enum type . value . ordinal(); You can return the actual int value.