Sure, there's a technical issue of is a caste the same as a race.
But for all intents and purposes, the situation is the same. The employee had bad outcomes alledgedly because people with power (his managers) were prejudiced against him because of who his parents were.