# Extract Payload for enum cases having associated value

**URL:** <https://forums.swift.org/t/extract-payload-for-enum-cases-having-associated-value/27606>\
**Category:** Pitches\
**Tags:** enums, associatedvalue\
**Created:** [August 4, 2019, 4:16pm UTC](https://forums.swift.org/t/extract-payload-for-enum-cases-having-associated-value/27606 "2019-08-04T16:16:24Z")\
**Posts on this page:** 1\
**Showing post:** 149

<div class="post-metadata">

**Author:** ![griotspeak](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/griotspeak/32/1966_2.png) [@griotspeak](https://forums.swift.org/u/griotspeak)\
**Post date:** [August 21, 2019, 8:56pm UTC](https://forums.swift.org/t/extract-payload-for-enum-cases-having-associated-value/27606/149 "2019-08-21T20:56:53Z")

</div>

I've pitched a different solution here [DiscriminatedUnion Protocol](https://forums.swift.org/t/pitch-discriminatedunion-protocol/28094)

---

_[View the full topic](https://forums.swift.org/t/extract-payload-for-enum-cases-having-associated-value/27606)._
