1 2 3 4 5 6
import java.util.*; public class Cast { public void test(List<?> list) { RandomAccess r = (/*before*/ RandomAccess /*after*/) list; } }