Cast to parameterized variable fails

I know its illegal to $cast to non-singular data type by LRM.

$cast( singular dest_var, singular source_exp );

Asking for a workaround or a solution to make this code to work with non-singular data types, obviously it should be without $cast.