Make implicit double->int conversion explicit.

Authored by johanneszarl on Jan 20 2019, 9:57 PM.