# ToLayerMask()

> Convert the lower 32-bits of the 64-bit mask to the 32-bit LayerMask. A LayerMask is only 32-bits wide so the upper 32-bits of the PhysicsMask will be ignored.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public readonly LayerMask ToLayerMask()
```

### Returns

| Type                                                                  | Description                                                              |
| --------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [LayerMask](/engine/6000.7/script-reference/unityengine/layermask.md) | A 32-bit layer-mask converted from the lower 32-bits of the 64-bit mask. |
