# ConvertToAllocatorHandle(Allocator)

> Convert an Allocator to an AllocatorHandle, keeping the Version.

## Definition

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

```csharp
public static AllocatorManager.AllocatorHandle ConvertToAllocatorHandle(Allocator a)
```

### Parameters

**** (\[Allocator]\(/engine/6000.7/script-reference/unity/collections/allocator)): The Allocator to convert.

### Returns

| Type                                                                                                     | Description                          |
| -------------------------------------------------------------------------------------------------------- | ------------------------------------ |
| [AllocatorHandle](/engine/6000.7/script-reference/unity/collections/allocatormanager/allocatorhandle.md) | The AllocatorHandle of an allocator. |
