BUG: Raise exception on non-numeric record value

Raise a TypeError if the user attempts to call record with a non-numeric value.