Deprecate casting delegates to void*
Merge pull request #1754 from ibuclaw/deprecation_dg2ptr

Deprecate casting delegates to void*