convert enum SelState into enum class