It certainly doesn't hurt to "cast" the input to boolean. But your second example is the next code smell, because it should just be
if (!this.state.isConnected) { /* do stuff */ }
(which still works as expected even when dealing with null or undefined).