What is the equivalent of (byte) in VB.NET:
(byte)
uint value = 1161; byte data = (byte)value;
data = 137
Try first chopping the most significant bytes off the number, then converting it to Byte:
Dim value As UInteger = 1161 Dim data1 As Byte = CType(value And 255, Byte) Dim data2 As Byte = CByte(value And 255)