They bolt up, no problem at all. The cams will likely be slightly different, but it'll work either way, no real tuning issues. Keep the intake/injectors/etc with the proper engine for less hassle.
WHy do you want to do this? You will gain absolutely nothing.
2007 BMW 328Xi Touring, 6 speed