> For the complete documentation index, see [llms.txt](https://docs.rigoblock.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rigoblock.com/api/staking/libs/libsafedowncast.md).

# LibSafeDowncast

## Overview

#### License: Apache 2.0

```solidity
library LibSafeDowncast
```

## Functions info

### downcastToUint96

```solidity
function downcastToUint96(uint256 a) internal pure returns (uint96 b)
```

Safely downcasts to a uint96 Note that this reverts if the input value is too large.

### downcastToUint64

```solidity
function downcastToUint64(uint256 a) internal pure returns (uint64 b)
```

Safely downcasts to a uint64 Note that this reverts if the input value is too large.
