Guarantee double type in curveTo command