# Sandbox.DataBag.Get

```csharp
T Get(string key, T fallback = null)
```

Get the value stored under `key`, or `fallback` if there's
nothing there or it's a different type.

### Parameters

- `key` (`string`)
- `fallback` (`T`), default `null`

### Returns

`T`

Declared in [Sandbox.DataBag](/api/Sandbox.DataBag).
Assembly: `Sandbox.System`.
