def convert_value(bind, value):
type_name = get_type(bind)<EOL>try:<EOL><INDENT>return typecast.cast(type_name, value)<EOL><DEDENT>except typecast.ConverterError:<EOL><INDENT>return value<EOL><DEDENT>
Type casting.