Im trying to get an object out of a HashMap and call a method from this object.
But insted of getting the object, I get a normal `java.lang.Object`.

```
public void setExits(HashMap<Direction, Exit> e){
        this.exits = e;

        Iterator it = e.entrySet().iterator();
        while (it.hasNext()) {
            Map.Entry exits = (Map.Entry) it.next();
            Exit r = exits.getValue(); //HERE I GET ERROR
        }
    }

```