Silence td_mg.c warning

td_mg.c: In function 'add_td_discovered_obj':
td_mg.c:912:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]