```java
  if (arr.class.isArray()) return (Object []) arr;
```