Let's say that A extends B
So is it possible to convert a LIst<A> to a List<B> in the fastest way possible ?
Example :
public class Entity ...
public class Player extends Entity ...
public class Enemy extends Entity ...
List<Enemy> enemy_list = new ArrayList<Enemy>();
List<Entity> enemy_list_as_entities = ... ?? // <- I want this to be the enemy_list but as entities and not as Enemies
Please try to ping me if you have the answer
Thanks