Use correct type when performing math operations.