Bug 1081406: Remove unnecessary numeric casts. r=rnewman

See: https://bugzilla.mozilla.org/show_bug.cgi?id=1081406