Project settings to remove JavaFX
Cast return type for comparison