A function parameter cannot be converted to a static value. The parameter must be static and cannot contain dynamic elements ...