Hi
Welcome back to uipath community
Basically when we are trying to clone a array the output variable is of type object, which means a shallow copy of array
public object Clone ();
— but if we check the type of that output variable it would be like, mention as dArr.GetType.ToString and the output would be System.Double[ ]
And while referring to for each loop the type argument be like object
For more details
here you go its resolved ienumerable.zip (2.9 KB)
the actual reason is for each loop will take input as ienumerable and to convert a object to ienumerable we need to mention as ctype(Myobjtype, totype)
that is ctype(clone_dArr,Ienumerable)