Awesome! I just tried it out, the cast expression is exactly what I was looking for. I'm currently using Tango and tried out its runtime traits api, this works as expected: if(implements(typeof(something).classinfo, A.classinfo)) Thanks for the info!