Common Weakness Enumeration

    CWE Definition / CWE-704

    CWE-704: Incorrect Type Conversion or Cast

    The product does not correctly convert an object, resource, or structure from one type to a different type.

    Published:9 Sep 2008
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

    CWE-664: Improper Control of a Resource Through its Lifetime