Memory: fix conversion operator

returning `const T` in times of move semantics is not such a great thing
anymore.

Signed-off-by: Matthias Kretz <kretz@kde.org>