Top "Casting" questions

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

Is it possible to assign a base class object to a derived class reference with an explicit typecast?

Is it possible to assign a base class object to a derived class reference with an explicit typecast in C#?. …

c# casting derived-class base-class downcast
How to cast/convert pointer to reference in C++

How can I pass a pointer (Object *ob) to a function which prototype is void foo(Object &) ?

c++ pointers casting reference type-conversion
Cast object to interface in TypeScript

I'm trying to make a cast in my code from the body of a request in express (using body-parser middleware) …

object typescript interface casting
Import pandas dataframe column as string not int

I would like to import the following csv as strings not as int64. Pandas read_csv automatically converts it to …

python pandas casting type-conversion dtype
How to cast or convert an unsigned int to int in C?

My apologies if the question seems weird. I'm debugging my code and this seems to be the problem, but I'm …

c casting types int unsigned
@Value annotation type casting to Integer from String

I'm trying to cast the output of a value to an integer: @Value("${api.orders.pingFrequency}") private Integer pingFrequency; The …

java spring casting annotations property-placeholder
TypeScript enum to object array

I have an enum defined this way: export enum GoalProgressMeasurements { Percentage = 1, Numeric_Target = 2, Completed_Tasks = 3, Average_Milestone_Progress = 4, Not_Measured = 5 } …

javascript arrays typescript enums casting
How to cast the size_t to double or int C++

My question is that I have a size_t data, but now I want to convert it to double or …

c++ casting double size-t
No function matches the given name and argument types

My function is: CREATE OR REPLACE FUNCTION FnUpdateSalegtab09 ( iacyrid Integer,iRepId Integer,iDrId Integer,ivrid Integer,imode smallint,itrno varchar,…

function postgresql types casting plpgsql
How do I concatenate a boolean to a string in Python?

I want to accomplish the following answer = True myvar = "the answer is " + answer and have myvar's value be "the answer …

python string casting boolean concatenation