Convert.ToUInt64 (Boolean) converts Boolean to 64-bit unsigned integer.
Class Sample
Public Shared Sub Main()
Dim falseFlag As Boolean = False
Dim trueFlag As Boolean = True
Console.WriteLine("{0} converts to {1}.", falseFlag,Convert.ToUInt64(falseFlag))
Console.WriteLine("{0} converts to {1}.", trueFlag,Convert.ToUInt64(trueFlag))
End Sub
End Class
Related examples in the same category