Added as_array helper for inline cursors