# AsNativeArray<T>()

> Returns a native array that aliases the content of this array.

## Definition

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

```csharp
public NativeArray<T> AsNativeArray<T>() where T : unmanaged
```

### Returns

| Type                                                                                 | Description                                            |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------ |
| [NativeArray\<T>](/engine/6000.7/script-reference/unity/collections/nativearray1.md) | A native array that aliases the content of this array. |
