Q:

How to convert EventCallback to EventCallback

Blazor has a generic class named EventCallback
How can I cast a 
protected EventCallback<T> ValueChanged { get; set; }

to 
EventCallback<bool> BoolChanged
   {
     get
     {
       if (typeof(T) == typeof(bool))
         return ValueChanged; //<== Error needs cast some how?
     }
   }

A:

Thanks to Levi Broderick via Twitter for the answer.
protected EventCallback<bool> BoolChanged => (EventCallback<bool>)(object)ValueChanged;

He states: Bouncing the cast through object is basically a C# idiom for "I know the compiler can't reason about this at compile time, but try it anyway at runtime and I accept that an exception might occur."

