# Get non-missing type in the case of parametric type

**URL:** https://discourse.julialang.org/t/get-non-missing-type-in-the-case-of-parametric-type/29109
**Category:** General Usage
**Tags:** parametric-types
**Created:** [September 24, 2019, 1:05pm UTC](https://discourse.julialang.org/t/get-non-missing-type-in-the-case-of-parametric-type/29109 "2019-09-24T13:05:44Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![tlienart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tlienart/32/7640_2.png) [@tlienart](https://discourse.julialang.org/u/tlienart)
#### Post date: [September 24, 2019, 1:47pm UTC](https://discourse.julialang.org/t/get-non-missing-type-in-the-case-of-parametric-type/29109/4 "2019-09-24T13:47:15Z")

</div>

Nice, thanks, unfortunately that won’t work on older versions of Julia right? it doesn’t on 1.0. as far as I can tell. (for `Union{Missing,Foo}` it will return `Union{Missing,Foo}`)

I guess I could do a version check and either use that or the `nomiss` thing.

Thanks either way!

---

_[View the full topic](https://discourse.julialang.org/t/get-non-missing-type-in-the-case-of-parametric-type/29109)._
