# FromIntPtr(nint)

> Converts a pointer to a function pointer.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Burst](/engine/6000.7/script-reference/unity/burst.md)
* **Assembly:** UnityEngine.BurstModule

## FromIntPtr(IntPtr)

> **Warning:**
>
> **Deprecated.** This method will be removed in a future version of Burst

```csharp
IFunctionPointer FromIntPtr(nint ptr)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The native pointer.

### Returns

| Type                                                                                | Description                    |
| ----------------------------------------------------------------------------------- | ------------------------------ |
| [IFunctionPointer](/engine/6000.7/script-reference/unity/burst/ifunctionpointer.md) | An instance of this interface. |
