How do I convert Action<T> to Action<Object> in C#?
How do I convert Action<T> to Action<Object> in C#?
You can add generic parameter like this
Action<object> Function<T>(Action<T> act) where T : class
{
return (Action<object>)act;
}