convert unnamed enum into enum class State