"Maybe" (still commented out) avoid casting if value is marked as "protected" and it's undefined.

This is automatically achieved by setting them as not required... maybe
it's a aste of time.
Comment grammar fixed