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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.