PMem: fix c++11 narrowing for legacy PMem

The best fix for these narrowing
violations is to use static casting