Top "Type-conversion" questions

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

Android Room: Efficient way to transform json result into db object

Problem I have a POJO parsed from an API call which looks like this public class Article { public Long id; @…

android type-conversion normalization android-room pojo
Convert INT column values to an empty string using ISNULL

I need to convert column ID of INT data type to a empty string ['']. I should not modify the …

sql sql-server-2008 type-conversion isnull
TypeError: descriptor 'encode' for 'str' objects doesn't apply to a 'tuple' object

Can some please help in fixing the TypeError. It works in python 2 but not in python 3. Python2: def ExchangeColumns(RECXX_…

python python-3.x type-conversion ride
LPCWSTR to char* and vice versa

I'm working on a simple project with DirectX9. I'm having a little snag with some conversion of data types, and …

c++ char type-conversion directx-9 lpcwstr
Is DateTimeOffset.UtcNow.DateTime equivalent to DateTime.UtcNow?

I need to upgrade some piece of code from statically calling DateTime.UtcNow to calling a time provider service which …

c# .net datetime type-conversion datetimeoffset
How to convert to UInt64 from a string in Powershell? String-to-number conversion

Consider the following Powershell snippet: [Uint64] $Memory = 1GB [string] $MemoryFromString = "1GB" [Uint64] $ConvertedMemory = [Convert]::ToUInt64($MemoryFromString) The 3rd Line fails …

powershell type-conversion powershell-5.0
R convert dataframe string column to datetime with one-digit length hour

How can I convert a "string" dataframe column attr_date into datetime when my hour can be one digit length …

r datetime type-conversion hour
Type Conversion/Casting Confusion in C++

What is Type Conversion and what is Type Casting? When should I use each of them? Detail: Sorry if this …

c++ type-conversion casting conversion-operator
How to tell if Type A is implicitly convertible to Type B

Given Type a and Type b, how can I, at runtime, determine whether there's an implicit conversion from a to …

.net reflection type-conversion implicit-conversion
Get inferred dataframe types iteratively using chunksize

How can I use pd.read_csv() to iteratively chunk through a file and retain the dtype and other meta-information …

python type-conversion pandas hdfstore