Cast valor id