They're very similar - they both represent social stratification of society into social ranks of wealth, income, race, education, and power.
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.
It’s not far off the UK definition of class (inherited from your parents and schooling), but a long way from the US take (based on your bank balance).