Implicit conversion from '' to ' Home
This page is specific to:.NET Framework Version:2.03.03.5
Visual Basic Reference: Error Messages 
Implicit conversion from '<typename1>' to '<typename2>' 

An expression or an assignment statement takes a value of one data type and converts it to another type. Because no conversion keyword is used, the conversion is implicit.

By default, this message is a warning. For information on hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.

Error ID: BC42016

To correct this error

  • If possible, use values of the same data type, so Visual Basic does not need to do any conversion.

  • Use CType or one of the other conversion keywords so that the conversion is explicit.

See Also

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View