Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Conversion operators cannot convert from a derived type 

A conversion operator is declared with a parameter type that derives from the return type.

At compile time, Visual Basic considers a predefined conversion to exist from any reference type to any type in its inheritance hierarchy, that is, any type from which it derives or which derives from it. Such a conversion might fail at run time, but the compiler cannot predict run-time results, so it allows any such conversion to compile.

Because the compiler considers this conversion to be already defined, it does not allow you to redefine it.

Error ID: BC33031

To correct this error

  • Remove this operator definition entirely. It is already predefined.

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.