If you use generics you should not have to use cast.
Type: Posts; User: Norm
If you use generics you should not have to use cast.
The posted code uses an element from an array of objects to call one of its method.
The ArrayList class has methods to return references to an element it holds that can be used like the array...