Upgrading to Bluetooth 4.0 internally iMac 2011 21.5 (A1311)
Plug in an external USB adapter. Much easier and less expensive, even if you’re already in the Mac to repair things. 

I have no reason to doubt that part would work since the OS and software all support this and it’s about the hardware receiver that needs swapping whether you do it internally or externally. This works.