Added methods to convert betweeen int/long and byte-array.