def _cast_params_from(params, context, schemas):
    result = {}
    for name in params:
        param_schema = {}
        for schema in schemas:
            if name in schema:
                param_schema = schema[name]
        result[name] = _cast(context[name], param_schema)
    return result
Pick a list of parameters from context and cast each of them according to the schemas provided
dataset/ETHPy150Open StackStorm/st2/st2common/st2common/util/param.py/_cast_params_from