“Casing the joint” means observing a particular location in order to formulate a plan. For instance, if you are a bank robber—although I hope you aren't—you might go to the bank a few days before you planned to rob it. Perhaps wearing a disguise, you would look around the bank and observe security guards, cameras, and other obstacles, so you could plan how to avoid capture or death during your burglary.