## System::CheckedCast method


Determines if the specified value falls into the range of values of type **TTo** and if it does casts it to the type **TTo**.

```cpp
template<typename TTo,typename TFrom> TTo System::CheckedCast(TFrom value)
```


| Parameter | Description |
| --- | --- |
| TTo | The type to which the specified value is to be cast |
| TFrom | The type of the specified value |

| Parameter | Type | Description |
| --- | --- | --- |
| value | TFrom | The value to cast |

### ReturnValue

The value of type **TTo** equivalent to **value**

## See Also

* Namespace [System](../)
* Library [Aspose.Page for C++](../../)
