Can I have a type enforced ObjectSelector param type?

I want to have a an ObjectSelector param that is of a specific parameterized type. Is there a canonical way to do this using param? I’m not sure if this is what ClassSelector is intended for, but when I use ClassSelector than I do not get nested object rendering in jupyter.