return cases wrapped as correct document subclass in cloudcare api