convert enum Modifier into enum class