Use case
For Settings and ProfileEvents fields in query_log and query_thread_log.
So you don't have to write ProfileEvents.Values[indexOf(ProfileEvents.Names, 'FileOpen')] anymore.
It should work as ProfileEvents['FileOpen'].
Implementation
Just replace the type.
No need to worry about compatibility.