openssd: do not cast directly

The code becomes unreadable when doing the casts inline.

It's okay to cast to the appropriate type and then set the structure
variable. By doing it that way, we explicit let the code reader know
what's happening.

In the end, its compiled to the same assembly code.