IQueryable<decimal> to decimal
<p>I have a model class which contains a property ProductPrice of type decimal. I am not able to store an IQueryable type to a property decimal. I have even tried to Convert.ToDecimal but it still showing me the error.</p>

<p><strong>Model - Product</strong></p>

<pre><code>public class Product
{
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public int ProductId { get; set; }
    public string ProductName { get; set; }
    public decimal ProductPrice { get; set; }
    public int ProductQty { get; set; }
}
</code></pre>

<p><strong>Model CartDispay</strong></p>

<pre><code>public class CartDisplay
{
    public int ItemId { get; set; }
    public String ProductName { get; set; }
    public int ProductQty { get; set; }
    public decimal ProductPrice { get; set; }
}
</code></pre>

<p><strong>Controller</strong></p>

<pre><code>public ActionResult Index()
    {
        int userId = 3;
        var items = _context.Cart.Join(_context.Items, c =&gt; c.CartId, i =&gt; i.CartId, (c, i) =&gt; new { c, i }).Where(c =&gt; c.c.UserId == userId).ToList();
        foreach(var item in items)
        {
            CartDisplay display = new CartDisplay();
            display.ItemId = item.i.ItemId;
            display.ProductName = _context.Product.Where(p =&gt; p.ProductId == item.i.ProductId).Select(p =&gt; p.ProductName).ToString();
            display.ProductPrice = _context.Product.Where(p =&gt; p.ProductId == item.i.ProductId).Select(p =&gt; p.ProductPrice); ;
            display.ProductQty = item.i.ProductQty;
            cartView.CartDisplay.Add(display);
        }
        retu
</code></pre>