Change get and delete to accept a type