Doctors may recommend you avoid foods with high oxalate levels. Some of these foods comprise cashews, almonds, spinach, potatoes, dates, peanuts, and pistachios. If you want to treat kidney stones, it’s better to avoid eating cashew nuts.