> let s = SNodeAny(SNode[float]()) > > newDNode(s) s is SNodeAny, is it given? ;/
@mratsim's post should be helpful in this case [https://forum.nim-lang.org/t/4415#27607](https://forum.nim-lang.org/t/4415#27607) I think it's because generic is compile-time while what you wanted is in runtime. Since you have defined another method for SNode[float] , it becomes concrete-type, cmiiw Indeed, changing the cast to `let s = SNodeAny(SNode[int]())` yield what you wanted.
