http://healthland.time.com/2011/06/17/tip-for-insomniacs-coo...
I've done it a few times and after about 10 minutes, any racing-thoughts in my brain dissipate, and it becomes much easier to go to sleep.
Maybe a better balance is needed, but I think there's a real link with the kind of person who can't sleep for thinking of work, and success in what they are doing.
This happened two nights ago. I was coding something fairly complex and had a hard time connecting everything together. It was something I had been struggling with for two weeks. In a dream, I figured out how to make things much simpler. The next morning I deleted 1000 lines of code, re-structured things, and got it working succinctly.
But you definitely don't sleep very well when you do it. :)
My current boss summed it up once when he said "the reason I'm always working outside hours [he works most evenings, will often get an email from him at 3am, most days a call sometime between 8pm and midnight - and this isn't some young startup hacker, he's a successful CEO of 10 years] is that I'm afraid of missing any opportunities".
Another way of putting that is Carpe Diem, one of my favourite quotes.
I'm the same, no matter what I'm doing - including trying to get to sleep - thoughts keep cropping up. Should we be talking to Company X. Do we need to hire Person Y. Why haven't we created Product Z.