diff --git a/src/OneScript.StandardLibrary/DelegateAction.cs b/src/OneScript.StandardLibrary/DelegateAction.cs index cad964779..017b7844f 100644 --- a/src/OneScript.StandardLibrary/DelegateAction.cs +++ b/src/OneScript.StandardLibrary/DelegateAction.cs @@ -42,7 +42,8 @@ public DelegateAction(Func action) public DelegateAction(Func action) { - _action = parameters => (IValue)action(parameters.Cast().ToArray()); + _action = parameters => action( parameters.Select(x=>x.GetRawValue()) + .Cast().ToArray() ); } public override bool DynamicMethodSignatures => true;