There seems to be some confusion amongst the community as to the details of casting objects to a class. There are two ways to do this:

1. Cast using the constructor… Constructor(obj);
2. Cast using the “as” operator… (obj as Constuctor);

There are subtle yet significant differences between these two approaches.

The […]