def _validate_split_param(split_algo, split_param, algo_config):
    """
    validate param for editing, also returns param type
    """
    valid_params = algo_config['algo_params'][split_algo]
    if split_param in valid_params:
        if isinstance(valid_params[split_param], bool):
            cast_type = bool
        else:
            cast_type = int
        return True, cast_type
    else:
        return False, None
