Yes, you can beat the casino. You just need to win big, and your winnings will surely exceed your entire lifetime investment. However, only a few achieve this.
But it's a very different thing for you to win a significant sum of money, and another to make the casino lose money. What generally happens in these cases is that you win the money others have lost, not the casino's.