Convert to a dict based api built around _types