Top "Type-conversion" questions

Type conversion is the way of implicitly or explicitly changing an entity of one data type into another.

PostgreSQL: how to convert from Unix epoch to date?

The statement gives me the date and time. How could I modify the statement so that it returns only the …

sql postgresql date type-conversion epoch
Int to Decimal Conversion - Insert decimal point at specified location

I have the following int 7122960 I need to convert it to 71229.60 Any ideas on how to convert the int into …

c# int decimal type-conversion decimal-point
How to determine an interface{} value's "real" type?

I have not found a good resource for using interface{} types. For example package main import "fmt" func weirdFunc(i …

types type-conversion go
How to convert a string to a date in sybase

I need to specify a date value in a sybase where clause. For example: select * from data where dateVal < […

sybase type-conversion
How to convert an OrderedDict into a regular dict in python3

I am struggling with the following problem: I want to convert an OrderedDict like this: OrderedDict([('method', 'constant'), ('data', '1.225…

python type-conversion ordereddictionary
Conversion of wchar_t* to string

How can I convert an wchar_t* array to an std::string varStr in win32 console.

c++ string winapi type-conversion wchar-t
How to convert from System.Enum to base integer?

I'd like to create a generic method for converting any System.Enum derived type to its corresponding integer value, without …

c# enums type-conversion
Python3 Error: TypeError: Can't convert 'bytes' object to str implicitly

I am working on exercise 41 in learnpythonthehardway and keep getting the error: Traceback (most recent call last): File ".\url.py", …

python type-conversion typeerror object-to-string
SQL alter column datatype from nvarchar to int

Can the datatype of a field be changed to int from nvarchar?? alter table employee alter column designation int is …

sql-server type-conversion alter-table
TypeScript: Convert a bool to string value

I have a really simple issue, I can't get to convert a simple boolean to a string value in TypeScript. …

casting type-conversion typescript