Classcast exception while using toArray()
#1 List<DVDInfo> dvds = getDVDList();
#2 DVDInfo[] dvdsArray = (DVDInfo[])dvds.toArray();
dvds is a list that has DVDInfo class objects when i try to get a array using line 2 i get class cast exception, Please help
Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object;
at com.sc.seven.TestArrayList.main(TestArrayList.java:73)

