Reject casts to unsized types

This closes issue #17441 and generally gives more helpful diagnostics.
Note that this cast doesn't work at the moment, so the note is a bit wrong. Should probably suggest using an implicit coercion.