Corrected casting errors in netlist