Linq Cast Object To String

Where(p => p. Unable to Cast from Object to Linq query (IEnumerable of LINQ to SQL. Properties or fields from the index that have not been matched together by name are skipped during the object creation/mapping. Consider Dog as an object and see the below diagram for its identity, state, and behavior. List`1[System. Int32' to type 'System. Assigning a different value to a string creates a new string object. If you hear people talking about IEnumerable, and sometimes wished you better understood its significance, then you should. Conversions in LINQ - The operators change the type of input objects and are used in a diverse range of applications. It can be inconvenient. Abstractions. The next example shows a LINQ to Objects query that incorporates a where clause. Bill Wagner, author of Effective C#: 50 Specific Ways to Improve Your C#, Second Edition, shows how to use the Expression API and dynamic runtime. String' occuring within a LINQ statement. String is commonly used data type. NET Framework. C# / C Sharp Forums on Bytes. NET and the LINQ to ADO. The LINQ provider automatically maps document fields in the index to properties on the custom search type by the names of the properties. 5 extensions. NET and the LINQ to ADO. You can use in where condition of LINQ. Convert Linq result to List: 3. LINQ queries return results as objects. This part discusses how to query SQL database with the defined mapping classes. LINQ seems to have found its way into the vocabulary of the average. I did this specifically because the Linq binary isn't serializable. Collections. With the select new clause, we create new objects of an anonymous type as the result of a query. Re: Unable to cast object of type 'System. Unable to cast object of type 'system. IEnumerable. The IEnumerable interface is central to LINQ. Unable to cast object of type 'System. Lambda {private SPListItemCollection _listItemCollection;. Tries to get the JToken with the specified property name. Conversion Operators. LINQ Query: Below LINQ query will find the months starting with "J" in the string array. Where(p => p. SQL String parsing though is limited to LINQ to SQL - LINQ to Objects and most other LINQ implementations don't have a way to turn strings into queries directly. AppendLine(fruit) Next ' The following query shows that the standard query operators such as ' Where() can be applied to the ArrayList type after calling OfType(). Document does not use Office Automation, nor any other library - only. DataRowView'I have two repeaters: One is for a list of terms and the other show the definition. Encoding is the process of transforming a set of Unicode characters into a sequence of bytes. Digging deeper it would appear that Linq To Sql is actually having a problem returning the User object from the User Entity class. Deserializing from JSON with LINQ. there are 100s of question on CORS on web-api, and on how to enable CORS, there is a different answer each one provides. Decimal' to type 'System. This changed with. Please read our previous article where we discussed the Architecture of LINQ i. These are the top rated real world C# (CSharp) examples of Newtonsoft. List`1info]'. Parsing all JSON using JToken. This concept is demonstrated in the following example:. Convert a String Array to a Decimal Array using C# or VB. StringBuilder("Elements of type 'string' are:" _ & vbCrLf) For Each fruit As String In query1 output. 嘗試在 LINQ 查詢中串連 int 和 string 類型的屬性時,遇到【Unable to cast the type 'System. This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL). Unable to cast object of type. String' to type 'System. In other words, a cast from int to long will succeed because there is a conversion from int to. NET datasets and XML documents. In case if we try to cast / convert different type of elements (string / integer) in collection then the conversion will fail and it will throw an exception. int value3 = (int) value2; Console. Unable to cast object of type 'Newtonsoft. Bug Reports. Not only can you use the operators locally to query object in memory, but you. when i try to get e. Represents a JSON object. C# program that uses cast expressions using System; class Program { static void Main() {// Assign an int and then cast it to an object implicitly. In this case, the query includes a where clause that only returns matches where the part description begins with the letter “S”:. Identity: It gives a unique name to an object and enables one object to interact with other objects. UiPath version: 2016. Like it or not, LINQ is here to stay. net How to convert a list of object into a list of string? Select and cast the value there and. I've often just caputured the result of the LINQ statement, checked for null, and…. I did this specifically because the Linq binary isn't serializable. Hi, I am trying to get the grid store data in the form of xml using storesubmitdataeventargs object. IConvertible' - Error in LINQ opereation. InvalidCastException: Unable to cast object of type 'System. Here is the extension method which can make this work. NET AJAX BinaryImage. Clone via HTTPS Clone with Git or checkout with SVN using the repository's web address. ToDouble method to do it, however, it failed. If LINQ is. 7KViews ; Last Post 31 January 2018. Example of LINQ to String Array. The IEnumerable interface is a key part of LINQ to Objects and binds many of its different features together into a whole. LINQ integrates queries in C# and Visual Basic through a set of extensions. LINQ to Entities only supports casting EDM primitive or enumeration types. LINQ to ADO. I did this specifically because the Linq binary isn't serializable. JObject to System. NET means using a LINQ queries on objects in ADO. In LINQ, Cast operator is used to cast / convert all the elements present in a collection into a specified data type of new collection. This part discusses how to query SQL database with the defined mapping classes. One of feature of XDocument is that we can use object as content, XDocument converts the objects to node or attribute. DomainService. Clone via HTTPS Clone with Git or checkout with SVN using the repository's web address. Language-Integrated Query (LINQ) is a powerful query language introduced in Visual Studio 2008. "LINQ to Entities does not recognize the method 'System. If not, then I wanted to use a string. Unable to cast object of type. The IEnumerable interface is central to LINQ. net/blog/csharp-async-gotchas. Hi all, I am getting follwing error-"unable to cast object of type 'system. Enumerate the results and create a string formatted however you want for each of them. Net, every string has a character set and encoding. In C#, an array is a group of like-typed variables that are referred to by a common name. The "new" keyword has other uses in the C# language. This series of posts explains IEnumerable and the role it plays in LINQ to Objects. aspx Mon, 15 Apr 2013 04:00:03 GMT This article is inspired by an MVP summit talk about common pitfalls in the C#. This integration of querying capabilities allows compile time checking of query expressions as well as intellisence support from IDE's using the reflection. Find the cars that are going less than 55 mph, and order by descending PetName: 8. And usually it doesn't have any negative influence because casted objects are always castable. NET and the LINQ to ADO. There is no issue with Convert. Using LINQ Select with string type collections. There are three types of conversion operators: As operators (AsEnumerable and AsQueryable), To operators (ToArray, ToDictionary, ToList and ToLookup), and Casting operators (Cast and OfType). jcc608 2018-05-17 00:12:52 UTC #1. It wasn’t difficult at all. Using LINQ GroupBy with Custom Types. png - Unable to cast object of type 'System. Currently the data is saved by converting it to a string, then converting that string to a byte array. Sum for Numeric Types. Net Attribute BackgroundWorker Binding C# DataGridView Dictionary Document Object Model Entity Framework Enum Exchange Web Services Extension Methods Generics Linq Linq-to-Object Linq-to-Sql Linq To Xml ListView MultiThreading MVC Process Reflection Regular Expressions Select. It can be especially useful with semi-structured data in text files. TryParse() within a LINQ where clause With this method, won't the exception mean that any input string that contains non-int values will not be read at all. Unable to cast object of type 'system. I am running into one headache issue regarding data type conversion in linq select statement, please see it as below, I would like to convert the string type of one below field with hightlight to double type, so i leverage Convert. This dictionary object has string has key and book class object has value. int value1 = 400; object value2 = value1; // Explicitly cast to an integer again. This is the second (and the last) post discussing cropping images and saving them to the SQL Server database, using C# ASP. Final delimiter: The example has a final delimiter on the end. Commenter la réponse de cs_ShayW Signaler Commenter la réponse de Whismeril. I am an idiot. Object)' method, and this method cannot be translated into a store expression. LINQ to String Array. The Conversion operators in LINQ are useful in converting the type of the elements in a sequence (collection). Addendum: In the above application = search. NET Entity Framework and LIN Q to Entities. String' exception. Right now I'm using Entity Framework almost exclusive for new code but let's face it, there is a tone of code written using ADO. GitHub Gist: instantly share code, notes, and snippets. NET also supports Entity SQL. Hi all, I am getting follwing error-"unable to cast object of type 'system. converting string into decimal in sum linq query asp. Re: Unable to cast object of type 'System. CallWhere(lambdaExpression). Expressions. If you have your own bag of LINQ tricks, please share them in the comments! Also, if you like this article, you may like my next article, Extended LINQ: additional operators for LINQ to objects. LINQ to Entities only supports casting Entity Data Model primitive types. Private Shared Sub Sample_Cast_Linq() Dim vegetables As New List(Of String)() From { _ "Cucumber", _ "Tomato", _ "Broccoli" _ } Dim result = From v In vegetables. Using LINQ, these really are one-liners, but they produce the required results. start date - end date). Merging JSON. I've often just caputured the result of the LINQ statement, checked for null, and…. http://tomasp. EntityQueryModelVisit. 5 SP1: LINQ to Entities complains when it encounters a LINQ expression like this because it doesn't know how to translate calls to Contains to SQL. Object, System. LINQ to ADO. NET primitive objects (int, long, string, DateTime, etc) in JValue whenever they're added to a JSON object or array. All LINQ methods are extension methods to the IEnumerable interface. __ComObject' to class type 'System. I've often just caputured the result of the LINQ statement, checked for null, and…. String' to type 'System. Pretty quickly I became annoyed with having to constantly wrap. It wasn’t difficult at all. Net Attribute BackgroundWorker Binding C# DataGridView Dictionary Document Object Model Entity Framework Enum Exchange Web Services Extension Methods Generics Linq Linq-to-Object Linq-to-Sql Linq To Xml ListView MultiThreading MVC Process Reflection Regular Expressions Select. 0, so you can write queries like the LINQ query above in the next version of EF. Xml, it does give an exception as attached in Exception. We can store different types of values in a string and then cast them to the appropriate data type. The advantages of this algorithm are its linear average performance and the constant memory it requires, in addition to simple implementation. The following code example demonstrates how to use Cast(IEnumerable) to enable the use of the standard query operators on an ArrayList. By using these entities, we can perform any operation like insert, update delete, etc. 4 The instanceof operator. If the question had been "how do I divide an integer by another", I would have said to use the syntax A/B. It can be especially useful with semi-structured data in text files. Linq Cast vs OfType. A parser can parse the dynamic expression and further generate the result of the expression. Unfortunately though it doesn't work in. Unable to cast object of type 'WhereSelectListIterator`2[info,info]' to type 'System. LINQ queries return results as objects. EntityQueryModelVisit. hi all, i'm having a slight problem that i cannot find a solution on google. Q&A for Work. 7KViews ; Last Post 31 January 2018. The Little Wonders series received so much positive response I decided to make it a recurring theme in my blog as new ones popped in my head. Tries to get the JToken with the specified property name. The beauty of these operators is how they can execute against diverse data sources. StringBuilder. and the elements are stored in a contiguous location. An IEnumerable that contains each element of the source sequence cast to the specified type. meb_nome, b. Here's a very simple way if you want to convert a String Array to String using C# LINQ. The index methods on JObject/JArray let you quickly get data by its property name on an object or index in a collection, while M:Newtonsoft. { public string Title. Represents a JSON object. A smarter implementation would be to give me a function/object that gives me the ability to create the first million numbers, perhaps through iterating through the set. Unable to cast object of type 'system. NET Framework. ToObject(System. net with example. Conversions in LINQ - The operators change the type of input objects and are used in a diverse range of applications. ) recommend using this technique to print the value of a string. Equality might look like a simple concept at a first glance, but looking deeper it isn’t. ToDouble method to do it, however, it failed. Int32' to type 'System. Inspired by these posts, I set out to implement some other features that LINQ to NHibernate is lacking, namely, support for the SQL CAST and COALESCE operators. NET and jQuery library called Jcrop. Name in each pair is the property name, while value. It also reflects the response of an object with other objects. Many websites require functionality for letting their site visitors to select and deselect all the rows in GridView using a single checkbox normally available in the header row. In LINQ to SQL, the data model of a relational database is mapped to an object model expressed in the programming language of the developer. While these objects can be useful, I almost always want to just work directly with the data. Linq JObject. { public static void Main. Here’s what I came up with: First, some extensions for the Object type:. This integration of querying capabilities allows compile time checking of query expressions as well as intellisence support from IDE's using the reflection. datetime' to type 's: I would like to apologize to all of you. As the name suggests, LINQ-to-Entities queries operate on the entity set (DbSet type properties) to access the data from the underlying database. I have a List which contains a Dictionary and I need to be able to search the Dictionary values and return the Audit Object where the value matches. In case if we try to cast / convert different type of elements (string / integer) in collection then the conversion will fail and it will throw an exception. IQueryable source); static member Cast : System. The exact property name will be searched for first and if no matching property is found then the StringComparison will be used to match a property. What you're experiencing is just a Visual Studio feature, where it breaks on Exceptions. This structure is composed of compound objects. Getting error: Unable to cast object of type ‘newtonsoft. It also reflects the properties of an object. Get all cars. String is commonly used data type. Parallel LINQ LINQ Conversion Operators (ToList, ToArray, ToLookup, Cast, OfType) In LINQ, conversion operators are used to convert the type of elements in list / collection. Using the Code. It is still supported but generally the modern C# programmers understand Predicate as a special kind of Func delegate. StringBuilder("Elements of type 'string' are:" _ & vbCrLf) For Each fruit As String In query1 output. Linq Cast vs OfType. This provides a nice, terse way to check whether a value is null, and if so return an alternate value. NET Forums / Data Access / ADO. This sample converts LINQ to JSON objects to. The Cast extension method is less useful for casting numeric types. A select statement against object list: 6. there are 100s of question on CORS on web-api, and on how to enable CORS, there is a different answer each one provides. LINQ to Entities means writing LINQ queries over entity framework objects. Questions: Is there a way to deserialize JSON content into a C# 4 dynamic type? It would be nice to skip creating a bunch of classes in order to use the DataContractJsonSerializer. Remove extracted from open source projects. With Microsoft LINQ to SQL, you enjoy the ability of using a strong. Join a community of over 2. ToArray() is parsed and turned into a command that can be sent to the data source. LINQ and strings (C#) 07/20/2015; 2 minutes to read +2; In this article. But implicit conversions are allowed. LINQ comes with LINQ Providers for in-memory object collections, Microsoft SQL Server databases, ADO. int value1 = 400; object value2 = value1; // Explicitly cast to an integer again. Expressions. You cannot cast a double to an int without an exception. It allows us to quickly create documents, or browse elements using LINQ. When the application runs, LINQ to SQL translates into SQL the language-integrated queries in the object model and sends them to the database. Numeric Casts Object. CallWhere(lambdaExpression). Linq namespace. ) recommend using this technique to print the value of a string. NET also supports Entity SQL. I wanted any non-int values to just be ignored, with the remaining int values still being returned. "LINQ to Entities does not recognize the method 'System. StringBuilder("Elements of type 'string' are:" _ & vbCrLf) For Each fruit As String In query1 output. A sample how to read a Excel 2007/2010 using Open XML SDK V2 (forgive the bad syntax highlighting). One place where I've found dynamic to be incredibly. In my previous post, I have created a simple database model that can be used for this purpose, so if you haven’t checked it out, please do. By continuing to browse this site, you agree to this use. Right now I'm using Entity Framework almost exclusive for new code but let's face it, there is a tone of code written using ADO. My recent article A Visual Lexicon of LINQ and accompanying wallchart provided a new, easier-to-use reference for LINQ operators when working in C#. I had a need to convert a list of string into an array of string, of course it can be done easily in several different ways, creating an array of int, converting the string element, and populate the int array, or using List as container. This article describes how to handle conversions from an anonymous type to a specific type by using. Previously we have an object in C# called a Predicate. It turns out that you cannot use the StringLength data attribute on an int data type. c# documentation: Linq to Objects. That means that you can call any LINQ method on any object that implements IEnumerable. LINQ Distinct Method in C# with Examples. Func`2[Microsoft. What I am trying to do is, I recorded the sequence of scheduling drop by pointing at pencil at one of these coloum. Remove extracted from open source projects. Linq Query to compare only Date part of DateTime In this post I am going to discuss about comparing the date part of the datetime in linq query. Good news, everyone! Newtonsoft natively supports deserializing to an ExpandoObject! For anyone who does not know, ExpandoObjects are what. It is especially helpful when using LINQ to SQL to retrieve data in the form of lists and/or arrays. C# (CSharp) Newtonsoft. Substring(0, 1)) For Each s As String. After some initial hesitation, I have. Using OrderBy, this LINQ (Lambda Expression) sample in C# sorts array of cars by "HorsePower", in ascending order. I'll hope this will be useful to you, pseudo coded. All LINQ methods are extension methods to the IEnumerable interface. Occasionally, you may find it necessary to use a cast operation in a query. This article describes how to handle conversions from an anonymous type to a specific type by using. ToDictionary(x => x. DataRowView'I have two repeaters: One is for a list of terms and the other show the definition. ' Note: The source we're casting from must contain only elements of the same type. The way I handled this is to parse the raw JSON (a string variable) into a JsonArray object. In LINQ to SQL, the data model of a relational database is mapped to an object model expressed in the programming language of the developer. OfType<>() extension methods. I find myself using LINQ more and more often, usually as a quick way to manipulate objects, sort them, filter and so on. Collections. Also we need to pass the Type object as an argument to this method. In linq query its easy to perform datetime comparison how to compare only date not time part of datetime filed of your entity. Bill Wagner, author of Effective C#: 50 Specific Ways to Improve Your C#, Second Edition, shows how to use the Expression API and dynamic runtime. Convert Char Array to String and Vice Versa. jobject’ to type ‘system. It can be inconvenient. It uses the standard IQueryable interface and supports most of the available operations. Linq Over Array: 4. For example, you can cast an int to a uint. Identity: It gives a unique name to an object and enables one object to interact with other objects. Unable to cast COM object of type 'System. This is required in many programs—it is important to have it handy. Within User there is a String Property called ConfirmationID. IDictionary interface. Casts the elements of an to the specified type. I'm doing MVC and I am doing a join. C# convert an object to a dictionary of its properties - ObjectToDictionaryHelper. CallWhere(lambdaExpression). Deserializing from JSON with LINQ. Concatenation in LINQ - Performs concatenation of two sequences and is quite similar to the Union operator in terms of its operation except of the fact that this does not remove duplic. Introduction. As fore mentioned, these query methods (also called standard query …. JValue' to type 'Newtonsoft. These four functions correspond to the four set theory functions mentioned in the overview. Hi, I am trying to get the grid store data in the form of xml using storesubmitdataeventargs object. String' to type 'System. Using LINQ, is very simple. ToArray() is parsed and turned into a command that can be sent to the data source. NET Master and Content Pages Get List of Active Directory Users in C# How to authenticate against the Active Directory b How to implement impersonation in an ASP. ) recommend using this technique to print the value of a string. NET Framework 4. NET primitive objects (int, long, string, DateTime, etc) in JValue whenever they're added to a JSON object or array. Unable to cast object of type 'Raven. This concept is demonstrated in the following example:. NET Framework, which, combined with it superior performance, makes it ideal for web applications, like ASP. JObject to System. net with example. In other words, a cast from int to long will succeed because there is a conversion from int to. , to a super-class (base class) or to a sub-class (a derived class). String' in LINQ [Answered] RSS 5 replies Last post Jul 27, 2013 02:32 AM by Anirban2407. IQueryable<'Result> Public Function Cast(Of TResult) (source As IQueryable) As IQueryable(Of TResult) Type Parameters. The Little Wonders series received so much positive response I decided to make it a recurring theme in my blog as new ones popped in my head. I will need to use Lambda/Linq to sort the list of objects. String Format(System. Double' to type 'System. Convert Char Array to String and Vice Versa. Using LINQ GroupBy with Custom Types. Dynamic and System.       Hi! It seems there is a problem to cast a Numeric field to String during a Linq to Entities. Apache Ignite. IQueryable source); static member Cast : System. NET languages) we now have the dynamic type that provides a host of dynamic features for the static C# language. A Cast query method is provided to cast non-generic sequence can be casted to generic sequence for further LINQ to Objects query, which will be discussed later. As the name suggests, LINQ-to-Entities queries operate on the entity set (DbSet type properties) to access the data from the underlying database. Hi, I am trying to get the grid store data in the form of xml using storesubmitdataeventargs object. DataRowView' Hi, I am having this problem: Unable to cast object of type 'System. The fact-checkers, whose work is more and more important for those who prefer facts over lies, police the line between fact and falsehood on a day-to-day basis, and do a great job. Today, my small contribution is to pass along a very good overview that reflects on one of Trump’s favorite overarching falsehoods. Namely: Trump describes an America in which everything was going down the tubes under  Obama, which is why we needed Trump to make America great again. And he claims that this project has come to fruition, with America setting records for prosperity under his leadership and guidance. “Obama bad; Trump good” is pretty much his analysis in all areas and measurement of U.S. activity, especially economically. Even if this were true, it would reflect poorly on Trump’s character, but it has the added problem of being false, a big lie made up of many small ones. Personally, I don’t assume that all economic measurements directly reflect the leadership of whoever occupies the Oval Office, nor am I smart enough to figure out what causes what in the economy. But the idea that presidents get the credit or the blame for the economy during their tenure is a political fact of life. Trump, in his adorable, immodest mendacity, not only claims credit for everything good that happens in the economy, but tells people, literally and specifically, that they have to vote for him even if they hate him, because without his guidance, their 401(k) accounts “will go down the tubes.” That would be offensive even if it were true, but it is utterly false. The stock market has been on a 10-year run of steady gains that began in 2009, the year Barack Obama was inaugurated. But why would anyone care about that? It’s only an unarguable, stubborn fact. Still, speaking of facts, there are so many measurements and indicators of how the economy is doing, that those not committed to an honest investigation can find evidence for whatever they want to believe. Trump and his most committed followers want to believe that everything was terrible under Barack Obama and great under Trump. That’s baloney. Anyone who believes that believes something false. And a series of charts and graphs published Monday in the Washington Post and explained by Economics Correspondent Heather Long provides the data that tells the tale. The details are complicated. Click through to the link above and you’ll learn much. But the overview is pretty simply this: The U.S. economy had a major meltdown in the last year of the George W. Bush presidency. Again, I’m not smart enough to know how much of this was Bush’s “fault.” But he had been in office for six years when the trouble started. So, if it’s ever reasonable to hold a president accountable for the performance of the economy, the timeline is bad for Bush. GDP growth went negative. Job growth fell sharply and then went negative. Median household income shrank. The Dow Jones Industrial Average dropped by more than 5,000 points! U.S. manufacturing output plunged, as did average home values, as did average hourly wages, as did measures of consumer confidence and most other indicators of economic health. (Backup for that is contained in the Post piece I linked to above.) Barack Obama inherited that mess of falling numbers, which continued during his first year in office, 2009, as he put in place policies designed to turn it around. By 2010, Obama’s second year, pretty much all of the negative numbers had turned positive. By the time Obama was up for reelection in 2012, all of them were headed in the right direction, which is certainly among the reasons voters gave him a second term by a solid (not landslide) margin. Basically, all of those good numbers continued throughout the second Obama term. The U.S. GDP, probably the single best measure of how the economy is doing, grew by 2.9 percent in 2015, which was Obama’s seventh year in office and was the best GDP growth number since before the crash of the late Bush years. GDP growth slowed to 1.6 percent in 2016, which may have been among the indicators that supported Trump’s campaign-year argument that everything was going to hell and only he could fix it. During the first year of Trump, GDP growth grew to 2.4 percent, which is decent but not great and anyway, a reasonable person would acknowledge that — to the degree that economic performance is to the credit or blame of the president — the performance in the first year of a new president is a mixture of the old and new policies. In Trump’s second year, 2018, the GDP grew 2.9 percent, equaling Obama’s best year, and so far in 2019, the growth rate has fallen to 2.1 percent, a mediocre number and a decline for which Trump presumably accepts no responsibility and blames either Nancy Pelosi, Ilhan Omar or, if he can swing it, Barack Obama. I suppose it’s natural for a president to want to take credit for everything good that happens on his (or someday her) watch, but not the blame for anything bad. Trump is more blatant about this than most. If we judge by his bad but remarkably steady approval ratings (today, according to the average maintained by 538.com, it’s 41.9 approval/ 53.7 disapproval) the pretty-good economy is not winning him new supporters, nor is his constant exaggeration of his accomplishments costing him many old ones). I already offered it above, but the full Washington Post workup of these numbers, and commentary/explanation by economics correspondent Heather Long, are here. On a related matter, if you care about what used to be called fiscal conservatism, which is the belief that federal debt and deficit matter, here’s a New York Times analysis, based on Congressional Budget Office data, suggesting that the annual budget deficit (that’s the amount the government borrows every year reflecting that amount by which federal spending exceeds revenues) which fell steadily during the Obama years, from a peak of $1.4 trillion at the beginning of the Obama administration, to $585 billion in 2016 (Obama’s last year in office), will be back up to $960 billion this fiscal year, and back over $1 trillion in 2020. (Here’s the New York Times piece detailing those numbers.) Trump is currently floating various tax cuts for the rich and the poor that will presumably worsen those projections, if passed. As the Times piece reported: