title Platform::InvalidCastException Class | Microsoft Docs ms.custom ms.date 12/30/2016 ms.technology cpp-windows ms.reviewer ms.suite ms.tgt_pltfrm ms.topic language-reference f1_keywords VCCORLIB/Platform::InvalidCastException::InvalidCastException VCCORLIB/Platform::InvalidCastException dev_langs C++ helpviewer_keywords Platform::InvalidCastException ms.assetid 0215131d-1251-4913-9561-824410e045b6 caps.latest.revision 3 author ghogen ms.author ghogen manager ghogen ms.workload cplusplus Platform::InvalidCastException Class Thrown when a cast or explicit conversion is invalid. Syntax public ref class InvalidCastException : COMException, IException, IPrintable, IEquatable Remarks For more information, see the COMException class. Requirements Minimum supported client: Windows 8 Minimum supported server: Windows Server 2012 Namespace: Platform Metadata: platform.winmd See Also Platform::COMException Class