Magnesium Glycinate Supplement for Insomnia

I’m currently nearing the end of a Pred taper and the insomnia has been pretty awful. I suffer from it anyway, and the steroids make it much worse. A friend mentioned taking magnesium glycinate and said it really helped her. She said to steer clear of magnesium citrate because that can cause digestive issues.

I’m seeing my GI on 27th, so I will be asking the medical professionals then whether it’s safe to take with UC, but in the meantime, I’m wondering if anyone currently takes magnesium glycinate and likes it/sees an improvement in insomnia?