Fixed type conversions for memory.