I can't seem to wrap my head around why the compiler is telling me that is can't convert from Object to List but it already is a List. Could someone point out what I'm not seeing?
import java.util.List;
import java.util.ArrayList;
public class User {
private List<String> subscribed;
public User() {
this.subscribed = new ArrayList<String>();
}
public List<String> getSubscribed() {
return ((ArrayList<String>)subscribed).clone();
}
}