Cannot assign PxFoundation to std::shared_ptr

Hi,

Im trying to build a simple game engine with PhysX 3.4 on windows.

However when I try to pass the PxFoundation pointer to a std::shared_ptr it gives me this error:

C2440: '<function-style-cast>': cannot convert from 'physx::PxFoundation *' to 'std::shared_ptr<physx::PxFoundation>'

Why is this happening? How can I use the PhysX SDK with smart pointers?