Parsing an object as a Vector of parentmodule

I hope this question finds you well, and I hope I can explain the question adequately. I write a program where I pass a vector of objects (mutable struct) from one module to a submodule (child module). So I call a function from a submodule, but the object comes from a module with include(…). In the submodule and the parent module, I make the object known.

in the function of the submodule, I use the function
include(“xxx/yyy/callmodule_to_get_object.jl)”
function foo( Vector{Any})

in the parent module it is something like this:
include(“xxx/callmodule_to_get_object.jl)”
newVec=Vector{Any}()

It works for me if I use Any as the datatype for the vector, but I want to have it clean so I can get the right type of object.

You’ll need to refactor your code so you only call include once.