Cast local variables const