What you receive is not an array, but a single object, that contains an array as a value of the attribute mostviewedvideos
:
{"mostviewedvideos":[....],
"ui":{...}}
That is what your error is saying (object can not be cast to an array). If it were an array it would have started with square brackets []