Nuts (the food) and nuts (the people) are alike... people take a crack at (and sometimes roast) both. :-)
Some lines from the "I'm a Nut" song from the "Dumb Ditties" record (for anyone interested)...
"The head on my shoulder is so loose,
That I ain't got sense God gave a goose...
Lord, I'm not crazy, but...
I'm a nut!"