Convert.ToInt32 (Boolean) converts Boolean value to 32-bit signed integer.
Module Example Public Sub Main() Dim falseFlag As Boolean = False Dim trueFlag As Boolean = True
Console.WriteLine("{0} converts to {1}.", falseFlag,Convert.ToInt32(falseFlag))
Console.WriteLine("{0} converts to {1}.", trueFlag,Convert.ToInt32(trueFlag)) End Sub End Module