# Extract type name only from parametric type

**URL:** <https://discourse.julialang.org/t/extract-type-name-only-from-parametric-type/14188>\
**Category:** General Usage\
**Tags:** question, parametric-types\
**Created:** [August 28, 2018, 12:55pm UTC](https://discourse.julialang.org/t/extract-type-name-only-from-parametric-type/14188 "2018-08-28T12:55:22Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [August 29, 2018, 12:27pm UTC](https://discourse.julialang.org/t/extract-type-name-only-from-parametric-type/14188/20 "2018-08-29T12:27:10Z")

</div>

Do you mean this?

```julia
help?> Core.TypeName
  No documentation found.

  Summary
  ≡≡≡≡≡≡≡≡≡

  mutable struct Core.TypeName <: Any

  Fields
  ≡≡≡≡≡≡≡≡

  name :: Symbol
  module :: Module
  names :: Core.SimpleVector
  wrapper :: Type
  cache :: Core.SimpleVector
  linearcache :: Core.SimpleVector
  hash :: Int64
  mt :: Any

julia> Base.typename(Vector{Int})
Array

julia> typeof(ans)
Core.TypeName

julia> Base.typename(Vector{Int}).wrapper
Array

julia> typeof(ans) 
UnionAll 

```

`Core.TypeName.wrapper` seems to be what you want.

---

_[View the full topic](https://discourse.julialang.org/t/extract-type-name-only-from-parametric-type/14188)._
