Visual Basic .NET Language Tutorial:

Visual Basic .NET Language Type conversion


  • CBool(expression)
  • CByte(expression)
  • CChar(expression)
  • CDate(expression)
  • CDbl(expression)
  • CDec(expression)
  • CInt(expression)
  • CLng(expression)
  • CObj(expression)
  • CSByte(expression)
  • CShort(expression)
  • CSng(expression)
  • CStr(expression)
  • CUInt(expression)
  • CULng(expression)
  • CUShort(expression)


Function nameRange for Expression argument
CBoolAny valid Char or String or numeric expression
CByte0 through 255 (unsigned); fractional parts are rounded.
CCharAny valid Char or String expression; only first character of a String is converted; value can be 0 through 65535 (unsigned).

Visual Basic .NET Language Type conversion Examples:

Related Visual Basic .NET Language Tutorial Topics:

Other Tutorial Topics:

This modified content is an extract of the original Stack Overflow Documentation released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow. This topic was created and modified by the Stack Ovedrflow Contributor.