Deploy to connected device

Is this cast needed?