# implicit operator bool(CastResult)

> Implicitly convert the cast output to a bool using the value in the PhysicsQuery.CastResult.hit flag.

## Definition

* **Type:** Operator
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

## implicit operator bool(Boolea)

```csharp
public static implicit operator bool(PhysicsQuery.CastResult output)
```

### Parameters

**** (\[CastResult]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsquery/castresult)): The CastResult to convert.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |
