# Sandbox.SandboxSystemExtensions.TryToType

```csharp
static bool TryToType(string str, System.Type t, out object Value)
```

Try to politely convert from a string to another type

### Parameters

- `str` (`string`)
- `t` (`System.Type`)
- `out Value` (`object`)

### Returns

`bool`

Declared in [Sandbox.SandboxSystemExtensions](/api/Sandbox.SandboxSystemExtensions).
Assembly: `Sandbox.System`.
