convert enum OffsetType into enum class