if(someVar is MyClass)
Resharper suggeted to replace this with
var some = someVar as MyClass;
if(some!= null){ /*.......*/ }
Is there any performance advantage? I remember something related with boxing and unboxing variables, but not sure, if I'm on the right path. Or is Resharper just suggesting proper syntax?