Suppress compilation warning with clang.

Add type casting to avoid compilation warning.