Changed ExecuteAndGet to allow retrieval of primitive data types like long