# explicit operator Vector2Int(Vector3Int)

> Converts a Vector3Int into a Vector2Int.

## Definition

* **Type:** Operator
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## explicit operator Vector2Int(Vector2In)

```csharp
public static explicit operator Vector2Int(Vector3Int v)
```

### Parameters

**** (\[Vector3Int]\(/engine/6000.7/script-reference/unityengine/vector3int)): The Vector3Int to convert.

### Returns

| Type                                                                    | Description |
| ----------------------------------------------------------------------- | ----------- |
| [Vector2Int](/engine/6000.7/script-reference/unityengine/vector2int.md) |             |

### Remarks

You can explicitly convert a `Vector3Int` to a `Vector2Int` by casting.

The z component is discarded in the conversion.
