Call Long.fromNumber in assertions instead of casting, fixes #22