I'm Neal and I am here to assist you. Only accept when you are happy with my assistance. If I can't help I will open your Question to other experts.
You would need to replace the transmission also, along with all the electronics for the engine and transmission. Due to the amount of work and cost, if your current engine is good you would be better off to sell yours and buy another with the engine you want.
That's just my opinion, that would be a lot of work and you would need basically a complete truck to get everything you need.