[DDMD] Explicitly cast FuncDeclaration to void*

Classes don't implicitly convert to `void*` in D.