Converts Key<dynamic> to Key<U>.
Key<dynamic>
Key<U>
Key<U> cast<U>() => Key<U>(parent!, type, id as U?);