---
title: "Unable to cast object of type \"DBContext.Models.Users\" to type \"IObjectContextAdapter\""  
description: "Unable to cast object of type \"DBContext.Models.Users\" to type \"IObjectContextAdapter\""  
author: "Steilla Mitchel"  
published: 2023-09-04  
updated: 2023-09-04  
canonical: https://answers.mindstick.com/qa/100480/unable-to-cast-object-of-type-dbcontext-models-users-to-type-iobjectcontextadapter  
category: "programming"  
tags: [".net programming", "c#"]  
reading_time: 1 minute  

---

# Unable to cast object of type "DBContext.Models.Users" to type "IObjectContextAdapter"

Unable to [cast](https://answers.mindstick.com/qa/116581/what-is-difference-between-cast-vs-convert-in-sql-server) object of type "DBContext.Models.Users" to type "IObjectContextAdapter"


---

Original Source: https://answers.mindstick.com/qa/100480/unable-to-cast-object-of-type-dbcontext-models-users-to-type-iobjectcontextadapter

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
