There is no one-size-fits-all answer to this question, as the best way to stop your phone from casting to nearby devices will vary depending on your specific situation. However, some tips on how to stop your phone from casting to nearby devices include disabling Bluetooth, disabling location services, and disabling the phone's camera.