Federal refund

I wanted to know if there's a way to change from getting my refund by mail to get it by direct deposit?