This is a property of Binary numbers to be able to extend to different bits by extending their first bit leftwards.
Types
Zero Extend
This simple adds more zeros to the front, does not change value at all for unsigned
One Extend
This simple adds more zeros to the front, does not change value at all for 2’s Complement