How do I convert the result fro views_get_view_result() to an array? I am getting an object from views_get_view_result().

Array
(
 [0] =&gt; Drupal\views\ResultRow Object
    (
        [_entity] =&gt; Drupal\node\Entity\Node Object
            (
                [in_preview] =&gt; 
                [values:protected] =&gt; Array
                    (
                        [vid] =&gt; Array
                            (
                                [x-default] =&gt; 9
                            )

                        [langcode] =&gt; Array
                            (
                                [x-default] =&gt; en
                            )

                        [revision_uid] =&gt; Array
                            (
                                [x-default] =&gt; 1
                            )

                        [revision_timestamp] =&gt; Array
                            (
                                [x-default] =&gt; 1508904645
                            )

                        [revision_log] =&gt; Array
                            (
                                [x-default] =&gt; 
                            )


How do I convert it to an array? My objective is to get the content types fields values. In an entity object there is toArray() to achieve this, but it doesn't work for what views_get_view_result() returns.
This is the entity you are looking for:

$node = $row-&gt;_entity;


And the field values:

$values = $node-&gt;toArray();


These are all of the values from the node, however if you want the results from the fields configured in the Views UI, see Get result view with formatter programmattically