Typecast validity inside or outside braces

Does typecasting remain valid even outside the braces or is it local?

hi tushar
it depend upon the variable if the variable have scope outside then it remain otherwise not