I haven't read it, but my (admittedly fairly limited) understanding of caste is that it's closer to classism than racism. Skin colour was a factor in caste systems, but I think primarily because darker skin was associated with people who worked in the sun all day.