public static Boolean toBoolean(Object input) {
        if (input instanceof Boolean) {
            return ((Boolean) input);
        } else if (input instanceof Number) {
            return ((Number) input).doubleValue() > 0;
        }
        return false;
    }
Converts a generic object into boolean value. Checks if the Object is of type Boolean and
returns the value of the Boolean object. Checks if the Object is of type Number and returns
True if the value is greater than 0.

@param input Generic object that will be inspected to return a boolean value.
@return True or False based on the input provided.
core/src/main/java/com/netflix/conductor/core/events/ScriptEvaluator.java