Correct, Support for the latest Arduino v2.0 · Issue #619 · platformio/platform-espressif32 · GitHub is still open.
The issue is a warning in the released 1.0.6 version, but this is not a bug, just a missing cast.
Duplicate of Updating ESP32 Platform / Arduino Framework.