kotlin as code example
Example 1: kotlin cast types
val myInt: Int = 1.0 as Int
Example 2: kotlin with
with(file){
load()
modify()
save()
}
val myInt: Int = 1.0 as Int
with(file){
load()
modify()
save()
}