Preheat your oven to 350°F (175°C).
In a large mixing bowl, add the cashew nuts.
In a separate bowl, combine the coarsely chopped rosemary, cayenne, brown sugar, and melted butter. Stir well.
Pour the seasoning mixture over the cashews and gently toss until fully coated.
Line a baking sheet with parchment paper and spread the seasoned cashews in a single layer.
Place the baking sheet in the preheated oven and roast the cashews for about 15-20 minutes, stirring halfway through.
Once roasted, allow the cashews to cool on the baking sheet before transferring them to a serving bowl or airtight container.