I have seen how to cast an object to a string array using the code below,
string[] arr = ((IEnumerable)paraArray).Cast<object>()
.Select(x => x.ToString())
.ToArray();
My question though is if paraArray is a object (but the data is a multidimensional array) how can I cast it to a multidimensional string array?
stringarray. It's converting eachobjectin a list into astringand then creating a newstringarray and populating it with those values. You seem to be under some serious misconceptions regarding what casting actually is and does. Casting something as astringarray would look like this:var myArray = (string[]) myObject;.