In that case, just do the crude casting as needed, so you can leave work for home. userList.get(0). @BrainSlugs83 The person that asked the question specifically asked about casting. @Carl - in Scala there's a subtle difference in that by default Lists are immutable. . To learn more, see our tips on writing great answers. @BrainSlugs83 for your need (List)(Object)list; @LasseV.Karlsen I'm not talking about casting, I'm talking about converting. Critics say that such casting indicates something wrong with your code; you should be able to tweak your type declarations to avoid it. A Increase font size. Then we will invoke the intValue () method on the extracted result to fetch the integer. We'll discuss what this warning means, why we're warned, and how to solve the problem. It used to work before. Each way is different from the other and these differences are subtle. Java program to calculate the occurrence of each character. License Open Source License Parameter Declaration @ SuppressWarnings ( "unchecked" ) public static <T> List <T> castList ( final Object object) Method Source Code. The rubber protection cover does not pass through the hole in the rim. 1980s short story - disease of self absorption. How to convert List