Bogey of castesism is recent phenomena. At the time of Chanakya most of the kings were Todays Backwards. Chandragupt was todays backward. Shivaji was from todays backard community...
What Bhasker pointed out is 100% correct. Muslim could never had 100% dominance. They had stiff resistance from Hindus and this was the reason why Hinduism could survive unlike Pharas ( present Iran ).