Converting SMemory into a POJO