For a RadzenDropDown I want to bind the full object that has been seleced.
<RadzenDropDown TValue="MyClass" @bind-SelectedItem="@myClass" Data="@listMyClasses" TextProperty="Name" ValueProperty="Id" />
In my code I defined myClass as an object of type MyClass:
public MyClass myClass { get; set; }
But at compile time I will get the error:
Cannot implicitly convert type 'object' to 'MyClass'. An explicit conversion exists (are you missing a cast?)