Object[] o = new Object[2];o[0] = "test1";o[1] = "test2";String[] s = new String[o.length];System.arraycopy(o, 0, s, 0, o.length);