Replace implicit conversions from class pointers to void* with explicit casts
Merge pull request #2218 from yebblies/objectvoid

[DDMD] Replace implicit conversions to and from class pointers with explicit casts