convert enum ElementType into enum class