I have a method which converts the Object ( which is an array of primitive or strings) which i have got after invocation of a method (so its in instance of java.lang.Object). I want to build the ArrayList from the input array. I tried using new ArrayList I have a method which converts the Object ( whi