Hi,
You would cast it to a JSObject, then to a JSArray object:
Code: C#
//Cast the return value to a JSArray object
JSObject obj = (JSObject)webView1.EvalScript("....");
JSArray array = obj.ToArray();
I do not believe there is built-in support to cast it directly to a typed array. However once you have a JSArray, you can loop through it to cast each array element into a typed element:
Code: C#
//Cast a JSArray object to a DOM.Element array
DOM.Element[] elements = new DOM.Element[array.Length];
for (int i = 0; i < elements.Length; i++)
elements[i] = array[i].CastTo<DOM.Element>();
Note that you must use JSObject.Cast method to cast the array element.
Hope this helps. Please feel free to let us know if you still have any more questions.
Thanks!