# Convert an array into Int

**URL:** <https://discourse.julialang.org/t/convert-an-array-into-int/26335>\
**Category:** New to Julia\
**Tags:** arrays, convert\
**Created:** [July 14, 2019, 6:35am UTC](https://discourse.julialang.org/t/convert-an-array-into-int/26335 "2019-07-14T06:35:48Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [September 8, 2020, 1:25am UTC](https://discourse.julialang.org/t/convert-an-array-into-int/26335/8 "2020-09-08T01:25:16Z")

</div>

> [@scotts](#):
>
> for i in [m[“Array1”], m[“Array2”], m[“Array3”]]  
> i = Int.(i)  
> end

Do

```julia
for i in [m["Array1"], m["Array2"], m["Array3"]]
    i .= Int.(i)
end

```

instead.

Note the dot in the assignment.

Also see my [recent post about bindings/labels](https://discourse.julialang.org/t/is-it-appropriate-to-say-a-variable-is-a-label-or-box/46068/19).

---

_[View the full topic](https://discourse.julialang.org/t/convert-an-array-into-int/26335)._
