asAtom

open fun asAtom(): Atom?

Casts the current Term to Atom, if possible, or returns null otherwise

Return

the current Term, casted to Atom, or null, if the current term is not an instance of Atom