I used some arrays of floats i constructed before.
Oh, i found the problem. I was initializing the vectors as [], with no values inside them and no type, so they stayed as Vector{Any}s.
Changing the declarations to Vector{Float64}() solved the problem.