What does it mean when code has 2 colons

So I was looking through roblox’s MouseLockController and found this:

self.boundKeys[#self.boundKeys+1] = keyEnum :: Enum.KeyCode

I know about typechecking, but thats one :
Is this the same as typechecking? If so, or even if not. What does it do / mean?

1 Like

This is type casting, you can find it here:

3 Likes

1 colon is type declaring, 2 colons is type casting.

3 Likes