Crypto taxes

Stocks are taxed when they are sold into cash for the capital gains. How are cryptos taxed - is it when you convert them to USD?