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.