Automatic type conversion for numbers