# How to properly cast object to generic enum?

**URL:** <https://forums.swift.org/t/how-to-properly-cast-object-to-generic-enum/63683>\
**Category:** Using Swift\
**Tags:** generics\
**Created:** [March 14, 2023, 3:21am UTC](https://forums.swift.org/t/how-to-properly-cast-object-to-generic-enum/63683 "2023-03-14T03:21:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![anon9791410](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@anon9791410](https://forums.swift.org/u/anon9791410)\
**Post date:** [March 14, 2023, 5:11am UTC](https://forums.swift.org/t/how-to-properly-cast-object-to-generic-enum/63683/3 "2023-03-14T05:11:12Z")

</div>

Your question [is the new hotness](https://forums.swift.org/t/pitch-use-some-to-express-some-specialization-of-a-generic-type/57913/13) for some reason. 🧨

---

_[View the full topic](https://forums.swift.org/t/how-to-properly-cast-object-to-generic-enum/63683)._
