title: Julia push! or append! floating-point values onto an integer array
body: <p>I have an integer vector in Julia and want to push a floating-point value to it, or append a collection of floating-point value to it, but Julia throws an error when I try to do that:</p>
  
  <pre><code>julia&gt; v = [1,2,3]
  3-element Array{Int64,1}:
   1
   2
   3
  
  julia&gt; push!(v, 4.5)
  ERROR: InexactError()
   in push! at array.jl:432
  
  julia&gt; append!(v, [4.5, 5.2, 3.1])
  ERROR: InexactError()
   in copy! at abstractarray.jl:344
   in append! at array.jl:447
  </code></pre>
  
  <p>How can I add these values to this array?</p>