Added getLong for TypedObjects