getLong is not really possible if it is a Long object, implemented a null check