Fixing Casting error on input for Math.RemapRange

Fixes http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-2383