Merge pull request #97 from howleysv/null-field-fix

Fixed cast bug for NULL table entries.