def convert_to_boolean(element):
    """
    Safely converts an element to a boolean value
    """
    element = str(element)
    if element.lower().replace(' ', '') in ['true', '1', 'yes']:
        return True
    else:
        return False