I hope it's sunny tomorrow.

Literal

Tomorrow clear-up [if-と] good [wish-な].

~といいな is a wish-expressing pattern — literally 'if it X, good, [wouldn't it].' The な here is the sentence-final particle of wistful self-reflection (typically masculine), not the prohibitive な. A compact, natural way to express a hope.