Cast to jlong for Windows goodness