In the future, maybe throw it to the ref instead.
Some good advice when it comes to reacting to technical fouls is to, well, not react.
Nick Collison experiences this firsthand as he takes the charge on Dwyane Wade, who then throws the ball at Collison, who has fallen to the ground. The Thunder forward then chucks it back at Wade and earns a technical.
Or maybe some better advice is to just be Dwyane Wade instead. If it helps, Wade would be ejected from the game with a few minutes left in the fourth quarter after recording his sixth foul.