Conversions from '<typename1>' to '<typename2>' must be explicit

This conversion cannot be accomplished implicitly.

Error ID: BC30664

To correct this error

  • Use the CType, or one of the specific conversion functions, such as CInt or CDec.

See Also

Reference

Type Conversion Functions