Fix for compiler implicit casts warning.