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

Fixed cast bug for NULL table entries.
Merge remote-tracking branch 'ppolv/master'