Is there a better way of doing this? Tried down casting by pattern matching like so but the compiler didn't like it.

```
other match {
  case otherImpl: GraphImpl => ...
}
```