Fix uncheck cast warnings