Object type in LVGL 8+

Hi All!

I have to implement the logic in which I use one function (handler of differnt events) for different elements (button, slider, etc.).
However, I ran into a problem. I can’t get the type of the element that emit this function. It is important for me to know if it was a button or a roller or something.

In version 7, there was a function lv_obj_get_type for this. However, now she is gone. Please tell me how can I get the element type from the base lv_obj_t in ver 8+?