When my brother put a diesel engine in his Toyota skid-steer from a forklift,it was almost identical except the forklift engine was set up for 24V,and though he was able to swap all the other electrical parts off the original 12V engine onto it like the altenator,etc,he couldn't use the fuel shut off valve on the other engine,it had a different injector pump and intake setup,and no one knew of a 12V version to use..
He thought about getting a 12 to 24V inverter,but they were very expensive...to get around this problem he simply added another small 12V tractor battery to it,and wired it in series so he could tap 24V off the positive post of the tractor battery to run ONLY to the fuel shutoff solenoid..it works ok but he has to remember to charge the battery up once in awhile..I'm sure a fix for that could be worked around though by someone with some electrical know how..(like isolating the second battery from the rest of the tractor to allow it to be charged by the same altenator maybe?)..