Police detected the drug by spraying the cast with a chemical that turns bright blue when it comes in contact with cocaine, he said. The man was taken to a hospital after the cast was removed.