This varies from one online casino to another. But usually, before you can cash out your bonus money for real money, you need to have gambled it away several times. Once you've done this often enough, you may actually cash out your winnings. Read the terms and conditions of the relevant online casino to get a specific answer on this.