``` d = AttrDict({'a': 1, 'b': AttrDict({'c': 3})}) ``` converting to dict: ``` In [10]: d.to_dict() Out[10]: {'a': 1, 'b': {'c': 3}} ``` ``` In [12]: type(d.to_dict()['b']) Out[12]: elasticsearch_dsl.utils.AttrDict ``` Expecting `dict` as type of `b`.