Top "Casting" questions

Casting is a process where an object type is explicitly converted into another type if the conversion is allowed.

SELECT CONVERT(VARCHAR(10), GETDATE(), 110) what is the meaning of 110 here?

When we convert or cast date in sql, see below sql code SELECT CONVERT(VARCHAR(10), GETDATE(), 110) AS [MM-DD-YYYY] it works …

sql date casting getdate
Why do we assign a parent reference to the child object in Java?

I am asking a quite simple question, but I am bit confused in this. Suppose I have a class Parent: …

java oop inheritance casting upcasting
Pandas reading csv as string type

I have a data frame with alpha-numeric keys which I want to save as a csv and read back later. …

python pandas casting type-conversion dtype
Value of type 'T' cannot be converted to

This is likely a a novice question, but google surprisingly did not provide an answer. I have this rather artificial …

c# .net generics casting
C# "as" cast vs classic cast

Possible Duplicate: Casting vs using the ‘as’ keyword in the CLR I recently learned about a different way to cast. …

c# casting
Can I assume (bool)true == (int)1 for any C++ compiler?

Can I assume (bool)true == (int)1 for any C++ compiler ?

c++ casting boolean
Casting LinkedHashMap to Complex Object

I've got an application that stores some data in DynamoDB using Jackson to marshall my complex object into a JSON. …

java casting jackson linkedhashmap
Casting array to IEnumerable<T>

Assume you have a basic Employee class as such: class Employee { public string Name; public int Years; public string Department; } …

c# arrays generics casting
Implicit type conversion rules in C++ operators

I want to be better about knowing when I should cast. What are the implicit type conversion rules in C++ …

c++ casting implicit
How to cast from List<Double> to double[] in Java?

I have a variable like that: List<Double> frameList = new ArrayList<Double>(); /* Double elements has added …

java list casting double