You can always use inheritance, either through base classes (as usual) or through interfaces.
On a side note, if you could explain what you mean by “get only specific types”, maybe we could be of more help. Also, describing the problem you’re trying to solve instead of the implementation you want to achieve usually yields more ideas.