cast to size_t from long