`dataclasses.asdicttype(type)`

It’s clear there are some use cases for this, otherwise there wouldn’t be multiple people requesting this feature (e.g. related requests [1], [2]).

Using dataclasses as **kwargs arguments is the most common one.