How does the history of the office of the Registrar General of India relate to a caste-based census?

The office has a long history dating back to the colonial era and has played a critical role in implementing affirmative action policies for historically disadvantaged communities. It would be instrumental in conducting a caste-based census if the government were to decide to conduct one.