cast equation