Variables are not strongly typed in BeanShell by default; If you use a variable name without specifying the type of it, you can assign anything to it.
You can declare variables with a data type, in which case the type is enforced :.