Typecast log vars.