According to this article a few cashews occasionally would be ok for most dogs, however macadamia nuts and walnuts are highly toxic.
Are Dogs Allowed to Have Cashews? | Dog Care - The Daily Puppy
My personal choice for my dogs is no nuts.... there are so many other more appropriate treats for them to enjoy, why take a chance of making them sick.