Support: Add *cast_or_null<> for pointer wrappers