make a typecast more amenable to the Closure Compiler