I will give some additional details:
- I am talking specifically about orange sweet potatoes. The white variety did not seem to have any effect and I haven't tried any of the other colours. I live in Australia and the ones I eat are called "Gold sweet potatoes" or "Kumara".
- The effect is basically on a day by day basis. So if I eat a sweet potato my sleep will be better on that day. I did notice though that if I ate a whole sweet potato on each day for around four days in a row the effect would also appear on the next day even if I didn't eat one.
- I pretty much always just microwave sweet potatoes when I eat them now. Once when I had them baked they worked as well.
- Even around a third of a large sweet potato is enough to induce the effect though a whole one might be stronger.
- I eat them during the evening or at night. I don't think it would make much difference whether I ate them earlier but I am not sure as I haven't tried it.
So this is something people who are trying to improve their quality of sleep could try. I am quite curious as to whether it would have anything like the same level impact on others as it has had on me.