Special grade sand is probably the most used sand size and will be fine with the YWG. I would set up the 40g with your sand of choice(use less if you're going to carry over your old sand), seed it with some bacteria (Dr. Tim's, MB7 & PNS Substrate Sauce) and pull some sand from you 20g and put it in there to help kick things into gear. Personally, I would make sure that temp, salinity and alk match and try to match nutrient levels of your 20g (you may need to dose N&P?) and just move everything over. Don't overthink this, there are tiny mini cycles happening in our tanks every day, so it's the last thing I would worry about. You're going to a larger volume of water, so everything will be diluted compared to your 20g, so you'll need to monitor parameters for the first couple weeks, but things should stabilize quickly. If your current sand bed isn't too deep, just save the water from your 20g and use it to rinse the sand until it's clear, then you can safely add it (or some) to the 40g. I've done this countless times, especially in smaller systems. You're barely doubling the size of the 20g volume-wise, so it's not a big leap. Temp and salinity are the easiest to match, after that is alk and nutrients. Alk and nutrients are the biggest things people have problems with in general, so matching them as best you can would be my priority and you're good to go.