ScriptPlugin - asInstanceOf