Might as well `[K <: AnyRef, V <: AnyRef]` and avoid all of the downcasting.