Repairs InvalidCastException on method RestClientExtensions.ExecuteDynamic

from issue https://github.com/restsharp/RestSharp/issues/536