Create a typed User object with required id/name and optional email/avatar. Demonstrate safe access and mutation with readonly fields where appropriate.