Avoid arithmetic using the wrong type