(uv_stream_t*)&server
is a cast. It is used here as a polymorphism emulation in C.
uv_tcp_t may be declared like:
typedef struct uv_tcp_t
{
uv_stream_t base; //base has to be first member for byte reinterpretation to work
/*...snip...*/
} uv_tcp_t;
This allows uv_listen
to operate on uv_tcp_t as if it was an uv_stream_t variable.
It is common, and (AFAIK) perfectly valid C.