Fixed Return not checking cast validity before casting.