remove unnecessary fileHandle_t typecasts