# Unable to cast object of type 'RestSharp.RestResponse' to type 'ZoomAPI.IRestResponse

**URL:** <https://devforum.zoom.us/t/unable-to-cast-object-of-type-restsharp-restresponse-to-type-zoomapi-irestresponse/80472>\
**Category:** API and Webhooks\
**Created:** [December 19, 2022, 6:28am UTC](https://devforum.zoom.us/t/unable-to-cast-object-of-type-restsharp-restresponse-to-type-zoomapi-irestresponse/80472 "2022-12-19T06:28:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![um1](https://avatars.discourse-cdn.com/v4/letter/u/7cd45c/32.png) [@um1](https://devforum.zoom.us/u/um1)\
**Post date:** [December 19, 2022, 6:28am UTC](https://devforum.zoom.us/t/unable-to-cast-object-of-type-restsharp-restresponse-to-type-zoomapi-irestresponse/80472/1 "2022-12-19T06:28:01Z")

</div>

IRestResponse restResponse = (IRestResponse)client.Execute(request); --\>In this line the above error coming.  
Please help me If I click on create this is the error I am getting

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [December 19, 2022, 5:41pm UTC](https://devforum.zoom.us/t/unable-to-cast-object-of-type-restsharp-restresponse-to-type-zoomapi-irestresponse/80472/2 "2022-12-19T17:41:27Z")

</div>

Hi @um1 can you elaborate more on this please? Please provide steps to reproduce this issue?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [December 23, 2023, 9:17am UTC](https://devforum.zoom.us/t/unable-to-cast-object-of-type-restsharp-restresponse-to-type-zoomapi-irestresponse/80472/3 "2023-12-23T09:17:40Z")

</div>

Closed on December 23, 2023, 9:17am UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
