# implicit operator int

> Implicit conversion from TypeIndex to an int.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## implicit operator int(Int3)

Implicit conversion from TypeIndex to an int.

```csharp
public static implicit operator int(TypeIndex ti)
```

### Parameters

**** (\[TypeIndex]\(/engine/7000.0/script-reference/unity/entities/typeindex)): TypeIndex to convert.

### Returns

| Type                                                       | Description                             |
| ---------------------------------------------------------- | --------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | TypeIndex.Value integer representation. |

## implicit operator TypeIndex(TypeInde)

Implicit conversion from an int to a TypeIndex.

```csharp
public static implicit operator TypeIndex(int value)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): int to convert

### Returns

| Type                                                                     | Description                         |
| ------------------------------------------------------------------------ | ----------------------------------- |
| [TypeIndex](/engine/7000.0/script-reference/unity/entities/typeindex.md) | TypeIndex representation of the int |
