make casts in FileRead.cpp explicit

Silences LLVM compiler warnings about losing integer precision.