asRealmObject

inline fun <T : BaseRealmObject> RealmAny.asRealmObject(): T

Creates an unmanaged RealmAny instance from a BaseRealmObject value.

Reified convenience wrapper for the RealmAny.create for RealmObjects.