为什么如下报错: can't convert from Collection to ArrayList<Type1>
ArrayList<Type1> myList = class1.function1();  // function1() 返回Collection
这种情况该怎么办?