void (String[] args) { Object[][] o = new Object[][] {{ (IntFunction<String>) integer -> Integer.toString(integer) }}; Object[] o1 = new Object[] { (IntFunction<String>) integer -> Integer.toString(integer) }; }