'Char' values cannot be converted to '<typename>'

'Char' values cannot be converted to '<typename>'. Use Microsoft.VisualBasic.AscW to interpret a character as a Unicode value or Microsoft.VisualBasic.Val to interpret it as a digit.

An expression attempts to convert a Char value to a data type other than String or Object.

Error ID: BC32006

To correct this error

  • Use the AscW function to interpret a Char value as a Unicode character code, or the Val function to interpret it as a numeric digit.

See Also

Reference

Asc, AscW Functions

Val Function

Char Data Type (Visual Basic)