Fix returns types in DataManager

so the casts actually work, which is mildly important