Ian: function to turn a long into a byte array