cast min, max, step and value to Number