convert enum Anchor into enum class