Return proper generic on GetAllInstances