Allow fetching by class and objects