This is the following idea:
List<Object[]> ret = new ArrayList<>();
ret.add(new Object[]{"a", 1});
Object[][] obj = (Object[][]) ret.toArray();
but it doesn't work: toArray returns Object[]
Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [[Ljava.lang.Object;
Any idea?
[][]?Object[]. Then, I want to cast it into what it really is