Add "Extracting a custom type" section to README