ak.to_list
----------

Defined in `awkward.operations.convert <https://github.com/scikit-hep/awkward-1.0/blob/80bbef0738a6b7928333d7c705ee1b359991de5b/src/awkward/operations/convert.py>`__ on `line 897 <https://github.com/scikit-hep/awkward-1.0/blob/80bbef0738a6b7928333d7c705ee1b359991de5b/src/awkward/operations/convert.py#L897>`__.

.. py:function:: ak.to_list(array)

Converts ``array`` (many types supported, including all Awkward Arrays and
Records) into Python objects.

Awkward Array types have the following Pythonic translations.

   * :py:obj:`ak.types.PrimitiveType`: converted into bool, int, float.
   * :py:obj:`ak.types.OptionType`: missing values are converted into None.
   * :py:obj:`ak.types.ListType`: converted into list.
   * :py:obj:`ak.types.RegularType`: also converted into list. Python (and JSON)
     forms lose information about the regularity of list lengths.
   * :py:obj:`ak.types.ListType` with parameter ``"__array__"`` equal to
     ``"__bytestring__"``: converted into bytes.
   * :py:obj:`ak.types.ListType` with parameter ``"__array__"`` equal to
     ``"__string__"``: converted into str.
   * :py:obj:`ak.types.RecordArray` without field names: converted into tuple.
   * :py:obj:`ak.types.RecordArray` with field names: converted into dict.
   * :py:obj:`ak.types.UnionArray`: Python data are naturally heterogeneous.

See also :py:obj:`ak.from_iter` and :py:obj:`ak.Array.tolist`.

