https://devhubby.com/thread/how-to-get-a-runtime-class-of-a-variable-in-kotlin