# Assert

```gleam
assert rawdata = SomeType
```

Causes the script to fail if the rawdata doesn't match the structure of datumtype
Otherwise, returns a value of SomeType

Primarily for validating input datums / redeemers.