Adding a tool DictToObj to avoid working with dict every time