the method inside the library I'm using return an object but it's really is an array of objects. And I'm stuck where I need that value. It's weird that no one has asked for a conversion like this.
Object[] objects = new Object[] {1,"fde", 5L};
Object cast = objects;
Object[] recovered = (Object[]) cast;
Object o = ...
Object[] array = { o };
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With