Or use reified types, see <https://kotlinlang.org/...
# getting-started
k