# IsInstanceOf(nint, nint)

> Tests whether an object is an instance of a class.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AndroidJNIModule

## IsInstanceOf(IntPtr, IntPtr)

```csharp
public static bool IsInstanceOf(nint obj, nint clazz)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The object to test.**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The class to test against.

### Returns

| Type                                                          | Description                                                       |
| ------------------------------------------------------------- | ----------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the object is an instance of the class. Otherwise, false. |

### Remarks

Additional Resources: [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)
