Implemented functionality for returning found object ids as different types (String, Long)