Added toBytes() method to BitConverter to convert an int[] to a byte[]