Mounted m = (Mounted)equipmentList.elementAt(cs.getIndex());
Mounted m = (Mounted)equipmentList.get(cs.getIndex());
    public EquipmentType getEquipmentType(CriticalSlot cs) {        if (cs.getType() != CriticalSlot.TYPE_EQUIPMENT)            return null;        Mounted m = (Mounted)equipmentList.elementAt(cs.getIndex());        return m.getType();    }