# Descend into any \`AbstractDict\`

**URL:** <https://discourse.julialang.org/t/descend-into-any-abstractdict/91908>\
**Category:** New to Julia\
**Created:** [December 20, 2022, 5:47pm UTC](https://discourse.julialang.org/t/descend-into-any-abstractdict/91908 "2022-12-20T17:47:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ellocco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ellocco/32/31331_2.png) [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Post date:** [December 20, 2022, 5:47pm UTC](https://discourse.julialang.org/t/descend-into-any-abstractdict/91908/1 "2022-12-20T17:47:28Z")

</div>

Continuing the discussion from [Looking for a key in a nested dict](https://discourse.julialang.org/t/looking-for-a-key-in-a-nested-dict/17211/3):

> [@Looking for a key in a nested dict](https://discourse.julialang.org/t/looking-for-a-key-in-a-nested-dict/17211/3):
>
> Nice, could possibly also descend into any `AbstractDict`.

I guess he means:

```julia
convert(AbstractDict, nestedDict)

```

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [December 20, 2022, 6:49pm UTC](https://discourse.julialang.org/t/descend-into-any-abstractdict/91908/2 "2022-12-20T18:49:26Z")

</div>

> [@ellocco](#):
>
> I guess he means:
> 
> ```julia
> convert(AbstractDict, nestedDict)
> 
> ```

No, I don’t think so. I think the comment referred to the fact that the [same code](https://discourse.julialang.org/t/looking-for-a-key-in-a-nested-dict/17211/2) could be generalized to work for any subtype of `AbstractDict` by replacing `value isa Dict` with `value isa AbstractDict`, no conversion necessary.
