# If I have a string such as, "Float64", can I convert it to the Julia DataType?

**URL:** <https://discourse.julialang.org/t/if-i-have-a-string-such-as-float64-can-i-convert-it-to-the-julia-datatype/110035>\
**Category:** General Usage\
**Created:** [February 10, 2024, 5:22pm UTC](https://discourse.julialang.org/t/if-i-have-a-string-such-as-float64-can-i-convert-it-to-the-julia-datatype/110035 "2024-02-10T17:22:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [February 10, 2024, 6:04pm UTC](https://discourse.julialang.org/t/if-i-have-a-string-such-as-float64-can-i-convert-it-to-the-julia-datatype/110035/4 "2024-02-10T18:04:20Z")

</div>

> [@ffevotte](#):
>
> In simple cases, you can do something like

If it’s just a single symbol, you don’t even need `Meta.parse` — you can do `getproperty(Base, Symbol("Float64"))` … but needing to do this is often a sign that you should re-think what you are doing.

---

_[View the full topic](https://discourse.julialang.org/t/if-i-have-a-string-such-as-float64-can-i-convert-it-to-the-julia-datatype/110035)._
