## System::static_pointer_cast method


Casts smart pointers using static_cast.

```cpp
template<class Y,class X> SmartPtr<Y> System::static_pointer_cast(SmartPtr<X> const &x)
```


| Parameter | Description |
| --- | --- |
| X | Source pointer pointee type. |
| Y | Target pointer pointee type. |

| Parameter | Type | Description |
| --- | --- | --- |
| x | SmartPtr\<X\> const\& | Source pointer. |

### ReturnValue

Pointer after cast.

## See Also

* Class [SmartPtr](../smartptr/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
