castToInteger

Casts the current Term to Integer, if possible

Return

the current Term, casted to Integer

Throws

if the current Term is not an instance of Integer