convert enum StyleValueType into an enum class