Use cast::transmute in object::cast

reinterpret_cast is getting renamed, and there is no difference
in this case.