On 23/07/2019 9:34 AM, solidstate1991 wrote: > It seems that I've to write my own function that searches in the given > object's classinfo.interfaces since I couldn't find anything related in > Phobos. if (Foo foo = cast(Bar)bar) { }