The cast is unnecessary (though not harmful).  apr_os_file_t is always an int on non-Windows.