query: ArrayList toArray method class cast exception
positive_passages.docid: 28147
positive_passages.text: java: (String[])List.toArray() gives ClassCastException
negative_passages.docid: 47233
negative_passages.text: Cannot perform instanceof check against parameterized type ArrayList
negative_passages.docid: 141921
negative_passages.text: Am I missing something, or do varargs break Arrays.asList?
negative_passages.docid: 16650
negative_passages.text: .toArray(new MyClass[0]) or .toArray(new MyClass[myList.size()])?
negative_passages.docid: 129333
negative_passages.text: What does IndexOutofRangeException mean?
negative_passages.docid: 138823
negative_passages.text: Why cast null to Object?
negative_passages.docid: 73120
negative_passages.text: Nullpointerexception when trying to send data from activity to class
negative_passages.docid: 55951
negative_passages.text: Passing arraylist of objects between activities
negative_passages.docid: 149357
negative_passages.text: javax.faces.FacesException: java.lang.ClassCastException: java.lang.String cannot be cast to javax.faces.component.UIComponent
negative_passages.docid: 61932
negative_passages.text: Java List toArray(T[] a) implementation
negative_passages.docid: 2398
negative_passages.text: ConcurrentModificationException for ArrayList
negative_passages.docid: 32835
negative_passages.text: How to cast System.Object[*] to System.Object[]
negative_passages.docid: 33838
negative_passages.text: Java - How to write ArrayList Objects into txt file?
negative_passages.docid: 139226
negative_passages.text: does valueType.ToString() does a cast on the valueType?
negative_passages.docid: 68247
negative_passages.text: Concurrent Modification Exception : adding to an ArrayList
negative_passages.docid: 80409
negative_passages.text: How does the Java cast operator work?
negative_passages.docid: 101013
negative_passages.text: Puzzling Enumerable.Cast InvalidCastException