Fixed startPoint value casting inconsistency

as sugessted by @mristuccia in Issue #14