Function that converts an expression into a byte number (0 - 255)
Syntax CByte (expression)
Dim btGrade
btGrade = CByte(45)
PowerShell equivalent, first assign a string value to the variable $num; then convert $num to the Byte data type:
$num = "12.64"
$num= [byte] $num
“Superstition sets the whole world in flames; philosophy quenches them” ~ Voltaire
CBool - Convert to boolean.
CCur - Convert to currency (number).
CDate - Convert to Date.
CDbl - Convert to Double (number).
CInt - Convert to Integer (number).
CLng - Convert to Long (number).
Convert to Base 36