Cast environment batch to number