Top "Type-conversion" questions

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

Powershell - Cannot convert value of type "System.Management.Automation.PSCustomObject" to type "System.Management.Automation.PSCustomObject"

I am working with Powershell 4 under Windows 7 and I have cmdlet defined like this: Function Transfer-File { [CmdletBinding()] Param( [Parameter(Mandatory=$…

powershell type-conversion powershell-4.0 cmdlet
OpenCV scalar datatype, when to use?

Here we can hava a look on OpenCV's basic structures. My question is what exactly the datatype "scalar" is and …

c++ opencv types type-conversion scalar
C++, conversion from utility:string_t to std::string crashes on return

I am using casablanca library to serialize json values. I tried making a conversion to std::string using typedef std::…

c++ json string type-conversion casablanca
Swift: CInt to Int conversion?

What is the most concise way to convert a CInt to an Int (the native integer type) in Swift? Right …

casting integer type-conversion swift nsnumber
How to convert AQMP message buffer into JSON object when using node.js amqp module?

I am using node.js amqp module for reading messages from a queue. The following is the callback that is …

node.js type-conversion node-amqp
TryParse create inline parameter?

Is there any way in C# to create a variable inline? Something like this: int x = int.TryParse("5", out new …

c# .net type-conversion clr tryparse
Convert datatype Clob to Varchar2 Oracle

I have an Oracle table with a column of type clob. I want to preserve the column order and change …

sql oracle type-conversion clob varchar2
Convert string to respective data type ie. int or long (python3)

temp=input() l=list(map(int,temp.split())) count=0 for i in range (1,min(l[0],l[1])+1): if l[0]%i==0 and …

python-3.x int long-integer type-conversion factors
Rvalue to lvalue conversion?

Why it is not possible to convert rvalues to lvalues? It is possible to do a conversion in the opposite …

c++ c++11 type-conversion rvalue-reference lvalue
Best way to convert between noda time LocalDate and Datetime?

I am using both the native Datetime and the Noda Time library LocalDate in the project. The LocalDate is mainly …

c# datetime type-conversion nodatime