Pharse enum class to int