Convert long ptr casts to long long