# ToArray()

> Returns a managed array that is a copy of this list.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
[ExcludeFromBurstCompatTesting("Returns managed array")]
public T[] ToArray()
```

### Returns

| Type              | Description                                  |
| ----------------- | -------------------------------------------- |
| [\<T>\[\]](./.md) | A managed array that is a copy of this list. |
