Fix asExpression ref return type