Assigning string values to string values or byte[] to byte[] does not require additional memory allocation.
But conversion between string and byte[] does so most of the time, because the underlying array of a string is immutable, versus the mutable of a byte[].
Encapsulating the type cast encapsulates exactly this potentially costly operation.
Whether this has a negativ or positive impact on potential compiler optimisation in respect to the need of a copy
in this special case, is hard to determine.