Don’t ask about caste or riches but instead ask about conduct.
Look at the flames of a fire. Where do they come from?
From a piece of wood, and it doesn’t matter what wood.
In the same way, a wise person can come from wood of any sort.
It is through firmness and restraint and a sense of truth that one becomes noble, not through caste.