Hi @C_F ,
Welcome to the MongoDB Community Forums. What type of discriminator convention are you using (Scalar/Hierarchical/Custom)? The OfType and Is were intended to work when the _t is an array of values listing all classes in the hierarchy as described in this ticket. If you can share a self contained repro of the issue as mentioned above, we’ll be happy to investigate further!
Thanks,
Rishit.