Yes, they could be casted to 64-bits just before shifting.
If this is clearer, I will change it.