Idiomatic-ify type switch
Return an error if Record() doesn't find a match