Correctly cast from Bool to CDVPluginResult