convert enum SpacerType into enum class