Implement genericcast_string

This function casts a pointer to a generic type which
contains members addr (of type const uint8_t*) and size
(of type size_t) into pointer to type string_t.