Which types of SSD are compatible with mac book pro mid-2012 (not retina)?
If your MacBook Pro is non-Retina : open both, take a look, if the storage connecter identical then you can switch between them.

If your MacBook Pro is Retina : simply NO :)