class BadConvert { public static Object up (LinkedList xs) { return (LinkedList) xs; // compile-time error } public static LinkedList down (Object o) { if (o instanceof LinkedList) // compile-time error return (LinkedList)o; // compile-time error else throw new ConvertException(); } }