is vs as operator in c#:
In C#, the IS and AS operators are essential keywords used to determine the type of an object during runtime.
The IS operator checks the type of an object and returns a boolean
value, which is true if the object is of the same type and false if not. On the other hand, the AS operator not only checks the type of an object but also performs a type conversion if the object is compatible with the given type.
![is-vs-as-operators-in-csharp](https://www.shekhali.com/wp-content/uploads/2023/01/is-vs-as-operators-in-csharp.png)