“Supplementation of magnesium appears to improve subjective and objective measures of insomnia in elderly people and may become a useful instrument in managing sleep disorders in the elderly, which could also be extended as a helpful aid to the general population.”
Link to article here https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3703169/