In reply to @demotomohiro "Do you want to": Almost, more like this: Entidade = ref object of RootObj id: int type DAO[E : Entidade] = ref object of Entidade dados: seq[E]