The underlying type of the enum class is int. See image below. Ask me for details, I can make a simple reproducable case if necessary. 