We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

Cannot convert argument '<argumentname>' of type '<type1>' to type '<type2>'

Visual Studio 2008

A conversion operation attempts to convert an argument to an incompatible type.

To correct this error

  • Ensure that the type to which you are trying to convert the argument is valid.

Show: