A Number type variable can hold a Quantity type value (with units) - this is by design.
Practical guide -