Make casting explicit to suppress warnings.