The aryan invasion theory is not linked with the caste system. If you see the ancient Hindu scriptures Ramayana and Mahabharatha, you can see the principal characters Rama, Krishna,Drona, Abhimanyu, Draupadi, Nakula ,Damayanti all described as being black-skinned, which is not at all compatible...