public static Float toFloat(final JsonNode node, final Float defaultValue) {
        if (node == null || !node.isNumber()) {
            return defaultValue;
        }
        return node.floatValue();
    }
constructs a boolean value from a node. If node is null or not boolean, defaultValue is returned.
main/src/main/java/cgeo/geocaching/utils/JsonUtils.java