Changed cast from boolean to Boolean to satisfy Android testing