# How to get the inner types of a parametric type

**URL:** <https://discourse.julialang.org/t/how-to-get-the-inner-types-of-a-parametric-type/99421>\
**Category:** General Usage\
**Tags:** type, parametric-types\
**Created:** [May 26, 2023, 2:28am UTC](https://discourse.julialang.org/t/how-to-get-the-inner-types-of-a-parametric-type/99421 "2023-05-26T02:28:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aleferna12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aleferna12/32/49549_2.png) [@aleferna12](https://discourse.julialang.org/u/aleferna12)\
**Post date:** [May 26, 2023, 2:28am UTC](https://discourse.julialang.org/t/how-to-get-the-inner-types-of-a-parametric-type/99421/1 "2023-05-26T02:28:41Z")

</div>

Hello! Is there a function that returns `Real` from `Vector{Real}`?

e. g.: `paramtype(Vector{Real})` should return `Real`.

Bonus if it can be generalized for any data structure such as `struct S{A, B, C} end` (should return `[A, B, C]`)

Cheers

---

<div class="post-metadata">

**Author:** ![Tarny\_GG\_Channie](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Post date:** [May 26, 2023, 2:34am UTC](https://discourse.julialang.org/t/how-to-get-the-inner-types-of-a-parametric-type/99421/2 "2023-05-26T02:34:39Z")

</div>

to get the parameters of object S, use

> typeof(S).parameters
