---
title: "What is difference between is and as operators in c#?"  
description: "What is difference between is and as operators in c#?"  
author: "Anchal Kesharwani"  
published: 2014-09-20  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/2168/what-is-difference-between-is-and-as-operators-in-c-sharp  
category: "c#"  
tags: [".net", "c#"]  
reading_time: 1 minute  

---

# What is difference between is and as operators in c#?

“is” operator is used to check the compatibility of an object with a given type and it returns the result as Boolean.

“as” operator is used for casting of object to a type or a class.


---

Original Source: https://www.mindstick.com/interview/2168/what-is-difference-between-is-and-as-operators-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
