To answer your question.......yes.
It will work. Pull the 4.0 Tb, buy a new gasket, then pull your 2.5 TB. There is a small part on the 4.0 that needs to replace the same part on the 2.5 TB. Look at the TB's side by side, there is a tab sticking out of both of them. They are in different locations on the two TB so they cannot be interchanged. Move the 4.0 one to the 2.5 (four torx screws), clean the TB, new gasket and bolt it on.
Give your 2.5 a nice little bit more pep in the top end, you won't downshift as much.