Wrap interface inside the when expression.