I don’t think it’s the same thing as what we think of as class. I found these comment threads made some of the differences clear to me:
The only difference is that a person's 'caste' in India, is dictated by blood and can never be changed. Whereas in the West, a person can theoretically transition from one class to another.