private static ExpressionSyntax TypedAs(ExpressionSyntax expression, TypeSyntax requiredType) { return(VoidStar.Equals(requiredType) ? expression : SyntaxFactory.CastExpression(requiredType, expression)); }