# Vector{Integer} vs Vector{Int64} in mutable struct template

**URL:** <https://discourse.julialang.org/t/vector-integer-vs-vector-int64-in-mutable-struct-template/80175>\
**Category:** New to Julia\
**Created:** [April 27, 2022, 11:45pm UTC](https://discourse.julialang.org/t/vector-integer-vs-vector-int64-in-mutable-struct-template/80175 "2022-04-27T23:45:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [April 27, 2022, 11:59pm UTC](https://discourse.julialang.org/t/vector-integer-vs-vector-int64-in-mutable-struct-template/80175/2 "2022-04-27T23:59:17Z")

</div>

Use `Vector{Int64}` or simply `Vector{Int}` which is the same.

Your error message would be solved using `Vector{<:Integer}` , [because of this](https://discourse.julialang.org/t/vector-float64-vector-any-false-why/80103), but probably you don’t want that, because it is an abstract type.

---

_[View the full topic](https://discourse.julialang.org/t/vector-integer-vs-vector-int64-in-mutable-struct-template/80175)._
