# implicit operator EntityId(Entity)

> Converts an entity to the EntityId with the same index and version.

## Definition

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

## implicit operator EntityId(EntityI)

```csharp
public static implicit operator EntityId(Entity entity)
```

### Parameters

**** (\[Entity]\(/engine/7000.0/script-reference/unity/entities/entity)): The entity to convert.

### Returns

| Type     | Description                 |
| -------- | --------------------------- |
| EntityId | The corresponding EntityId. |
