I think the title should explain it all but just in case...
I want to know what risks and potential issues relating to casting can arise from the following snippet o
There should be no problem as long as just you retrieve objects from the list. But it could result in runtime exception if you invoke some other methods on it like the following code demonstrate:
List intList = new ArrayList();
intList.add(2);
List extends Number> numList = intList;
List strictNumList = (List) numList;
strictNumList.add(3.5f);
int num = intList.get(1); //java.lang.ClassCastException: java.lang.Float cannot be cast to java.lang.Integer