how to change array boolean to int code example
Example 1: numpy convert true false to 0 1
array([False, False, True, True], dtype=bool)
>>> 1*y # Method 1
array([0, 0, 1, 1])
>>> y.astype(int) # Method 2
array([0, 0, 1, 1])
Example 2: convert dint to boolean array
Dim MyDint As Int32 = 32
Dim oByteArray As New System.Collections.BitArray(System.BitConverter.GetBytes(MyDint))