Cannot convert text to number

If you need to keep only numbers and the decimal separator, you can use keepchars(). It’s a good way to deal with invalid characters:

asnumber(keepchars([Memory size], '0123456789.-'))

PS. I’ve seen your feature suggestion for data type conversion. We’ll have something for this in version 3.6 or 3.7. Thanks for the feedback, anyway.