On Android, simply click the Cast icon and select Stop Casting to stop casting Apple Music. On PC, click on the Cast button on the toolbar and click stop casting.