Compiler Error C2069

cast of 'void' term to non-'void'

A term of type void was cast to a different type.

Type void cannot be cast to any other type.