Change cast of variance formula.