Use to_value and from_value in Number