On 7/12/22 06:34, rempas wrote: > static if (is(typeof(obj) == Test)) { printf("YES!!!!!!!\n"); } An alternative: import std.traits; static if (isInstanceOf!(Test, typeof(obj))) { printf("YES!!!!!!!\n"); } https://dlang.org/phobos/std_traits.html#isInstanceOf Ali