# New function \`convert!\`?

**URL:** <https://discourse.julialang.org/t/new-function-convert/13023>\
**Category:** Internals & Design\
**Tags:** proposal\
**Created:** [August 8, 2018, 6:22am UTC](https://discourse.julialang.org/t/new-function-convert/13023 "2018-08-08T06:22:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![strickek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/strickek/32/14885_2.png) [@strickek](https://discourse.julialang.org/u/strickek)\
**Post date:** [August 8, 2018, 6:22am UTC](https://discourse.julialang.org/t/new-function-convert/13023/1 "2018-08-08T06:22:31Z")

</div>

I just played a little around with `push` and `pop` and `push!` and `pop!` in the new RC for Julia 1.0. Is there a reasion, why `convert!` is not implemented?

---

<div class="post-metadata">

**Author:** ![e3c6](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Post date:** [August 8, 2018, 7:43am UTC](https://discourse.julialang.org/t/new-function-convert/13023/3 "2018-08-08T07:43:50Z")

</div>

What would it do? The result is of a different type than the input, so cannot be written to the same memory spot.

---

<div class="post-metadata">

**Author:** ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Post date:** [August 8, 2018, 2:07pm UTC](https://discourse.julialang.org/t/new-function-convert/13023/4 "2018-08-08T14:07:54Z")

</div>

I have been moving in the direction of overloading `copyto!` for this kind of thing.
