I’m really sick of having to do a dance to get my ...
# android
r
I’m really sick of having to do a dance to get my custom adapters back from my `RecyclerView`s, so I tried making this:```fun <T : RecyclerView.Adapter<*>> RecyclerView.typedAdapter(): T { return this.adapter as T }``` Unfortunately, I’m getting an unchecked cast warning and I can’t seem to get it to go away.