Conversions - Boolean, Integer and Byte.
There are many parts of "language" that, while I don't really understand the underlying rules, I just accept them in my life. Here's some conversions between Boolean, Int and Byte which, while they work, I don't fully understand the rules governing them:
Dim b1 As Boolean = True
Dim i As Integer = b1
Dim byt As Byte = b1
Debug.WriteLine(i)
Debug.WriteLine(byt)
Dim i2 As Integer = 1
Dim i3 As Integer = -600001.567
Dim b2 As Boolean = CBool(i2)
Dim b3 As Boolean = CBool(i3)
Debug.WriteLine(b2)
Debug.WriteLine(b3)