asReference

fun <T> T.asReference(): WeakReference<T>