# How to get the container type of a container?

**URL:** https://discourse.julialang.org/t/how-to-get-the-container-type-of-a-container/20253
**Category:** General Usage
**Tags:** type, parametric-types
**Created:** [January 29, 2019, 10:25pm UTC](https://discourse.julialang.org/t/how-to-get-the-container-type-of-a-container/20253 "2019-01-29T22:25:05Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![MilesCranmer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/milescranmer/32/21070_2.png) [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)
#### Post date: [June 15, 2023, 2:11pm UTC](https://discourse.julialang.org/t/how-to-get-the-container-type-of-a-container/20253/10 "2023-06-15T14:11:24Z")

</div>

Doesn’t seem like there’s an alternative:

> [@Stripping parameter from parametric types](https://discourse.julialang.org/t/stripping-parameter-from-parametric-types/8293/17):
>
> `Base.typename` returns a `Core.TypeName` object. To get the bare type, you still have to use `Base.typename(T).wrapper`. It seems useing `T.name.wrapper` is more straightforward.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-get-the-container-type-of-a-container/20253)._
