The microsoft docs show that C#'s Array.Clone() method returns type object:
public object Clone ();
and indeed the example they give includes a cast.
eg
int[] myClone1 = (new int[2]).Clone(); // Type error
int[] myClone2 = (int[])(new int[2]).Clone(); // All good
Why does Clone() return object instead of the expected type ?
ToArray()which will not need to be castToArray()tip as well, I'd missed that.