Convert bytes to UInt32
Module Example Public Sub Main() Dim value As Integer = -16 Dim bytes() As Byte = BitConverter.GetBytes(value) Dim uintValue As UInteger = BitConverter.ToUInt32(bytes, 0) Console.WriteLine("{0} = {1}: {2}", value, uintValue, If(value.Equals(uintValue), "Round-trips", "Does not round-trip")) End Sub End Module