asLong

abstract fun asLong(): Long

Returns the value from this RealmAny as a Long. RealmAny instances created using Short, Int, Byte, Char or Long values can be converted to any of these types safely.

Throws

if the stored value cannot be safely converted to Long.