---
title: "System::Text::Json::ThrowHelper::ThrowInvalidCastException_DeserializeUnableToAssignValue method"
url: "https://reference.aspose.com/pdf/cpp/system.text.json/throwhelper/throwinvalidcastexception_deserializeunabletoassignvalue/"
product: "Aspose.PDF for C++ API Reference"
description: "How to use ThrowInvalidCastException_DeserializeUnableToAssignValue method of System::Text::Json::ThrowHelper class in C++."
---

## ThrowHelper::ThrowInvalidCastException_DeserializeUnableToAssignValue method




```cpp
static void System::Text::Json::ThrowHelper::ThrowInvalidCastException_DeserializeUnableToAssignValue(const TypeInfo &typeOfValue, const TypeInfo &declaredType)
```

## See Also

* Class [TypeInfo](../../../system/typeinfo/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
