Fix Object -> size_t casts to go through void*
Merge pull request #2264 from yebblies/classcast

[DDMD] Fix Object -> size_t casts to go through void*