cast ulong to long