Actually, in Kotlin, you don't have to, you can do...
# tornadofx
e
Actually, in Kotlin, you don't have to, you can do
(db.getContent(TILES) as? DragTile)?.let{}
. The code in let will only run if you have a DragTile (will be passed as a parameter to the function)