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