TypeConverter.ConvertTo Method (Object, Type)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Converts the specified value object to the specified type.
Assembly: System (in System.dll)
Parameters
- value
- Type: System.Object
The object to convert.
- destinationType
- Type: System.Type
The type to convert the object to.
A call to this method forwards the call to ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type), with null passed for context, current culture for culture, and the destinationType of the original call.
Show: