Convert integers back and forth to byte arrays.