Converts an object to a byte array