Delphi XE introduced the SafeIntAsClass to cast back from an interface to a class. This is one of the things I really started to miss after doing a lot of .NET work (where that worked starting with .NET 1). Older versions of Delphi did not support safely casting from an interface back to an object. ...
More...