Consider for example my code which finds records in a MongoDB database; this returns a MongoCursor object, so when I var_dump() it, all I get is a little output telling me that's what sort of an object it is! Using iterator_to_array(), I can grab an array that I can quickly use to check what I got back:
$people = $db->people->find()->sort(array("created" => -1));
print_r(iterator_to_array($people));
In this case, I know there are only two rows in my database so it is a useful diagnostic tool as I put in the first pieces of a new application. Do be careful though about using this function on potentially large datasets! One of the best things about cursors is precisely that they avoid bringing in everything in one go, in case the data set is too large, so there are times when you won't want to put it all into an array at once. However for the times when you do - now you can :)