0
kicks
Type casting – the difference between as and () operators
In C#, you have two different ways to perform type casting (a.k.a. explicit type conversion) – as and () operators. The difference between the two operators is not limited to just syntax, they work differently. It is subtle enough to trap even experienced developers