use as operator instead of cast
remove goose output panels when closing solution