This documentation is archived and is not being maintained.

Cast from type '<typename1>' to type '<typename2>' is not valid 

An attempt to convert a variable from one type to another is not valid.

To correct this error

  • Check the types involved in the conversion and make sure you are attempting to convert to a meaningful type.

See Also