Use val instead of var if that is not variable.
Remove meaningless type casting.
Remove meaningless semicolon.
Remove unused imports.
Remove unused variable.
Use simple code as possible.