# Sandbox.SandboxSystemExtensions.ToBool

```csharp
static bool ToBool(string str)
```

Try to convert to bool. Inputs can be true, false, yes, no, 0, 1, null (caps insensitive)

### Parameters

- `str` (`string`)

### Returns

`bool`

Declared in [Sandbox.SandboxSystemExtensions](/api/Sandbox.SandboxSystemExtensions).
Assembly: `Sandbox.System`.
