Hmm... booleans are tricky. On second thought, you might have to have both meshes closed, so a plane wouldn't work. You might still be able to use the cube as a guide to do extract with.