Better long casting for LongIntField.
Merge pull request #1 from qur2/master

Better long casting for LongIntField.