venture of iit bombay vjti alumni data type conversion sometimesyou may need to perform conversions between the built-in types to convert between typesyou simply use the type name as function there are several built-in functions to perform conversion from one data type to another these functions return new object representing the converted value sr no function description int( [,base]converts to an integer base specifies the base if is string long( [,baseconverts to long integer base specifies the base if is string float(xconverts to floating-point number complex(real [,imag]