LanguagePrimitives.ConvertTo Method (Object, Type)
Updated: April 27, 2016
Applies To: Windows PowerShell
Converts an object from one type to another.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Windows PowerShell can use standard Windows PowerShell language converters or custom converters to perform the type conversion. For more information about these converters, possible return values, and exceptions that might be thrown during the conversion process, see ETS Type Conversion [ps].