They might be the same...or they might not.
A D1105 has a lot of different variations. The basic short block is basically the same. But in some cases that's where the similarities end.
Similarly, I'm looking at a K008 mini-excavator, with a D722 engine. It makes ~10hp, and is governed to 2050 RPM. But a D722 in my G1900 turns 3500 RPM on the governor and makes about 18hp. BIG difference; if I were to put the G1900 engine on the excavator, it's possible that the hydraulic fluid would be overheated, wheel motors turning too fast, way too much fluid volume, fuel usage goes way up, the little radiator may or may not be able to cool the engine with elevated RPM, the engine turns too fast-among a bunch of other issues.
If at all possible, just rebuild what you have. If not possible, swap all the governor and fuel injection pump parts from the excavator to the toro engine, and be sure to re-time the injection via shimming. Not hard, but slightly tedious-or it "can" be anyway.
I've known guys who've bought D1105's from excavator and then put it into an RTV1100....to find out that it only will go about 10 mph and take forever to get there, because the governor is different. All that work, just to yank it back apart...and on an RTV1100, it's not an easy task to have to do!