Magnesium

I’ve heard that magnesium can help for sleep. I seem to be on a ‘wake up by 5:30am’ thing on Vyvanse, which is fine if I can be asleep by 10:30pm or so. Would magnesium help me get to sleep, or sleep longer/more consistently?