Gang Of Coders
Home
About Us
Contact Us
All Casting Solutions on Gang of Coders
Total of 248 Casting Solutions
In Python, how do I convert all of the items in a list to floats?
Python
List
Casting
Convert String to double in Java
Java
String
Casting
Double
Type Conversion
C# : 'is' keyword and checking for Not
C#
Casting
Keyword
using group_concat in PHPMYADMIN will show the result as [BLOB - 3B]
Mysql
Casting
Phpmyadmin
Group By
Group Concat
Casting objects in Java
Java
Object
Casting
Should I worry about the alignment during pointer casting?
C++
C
Casting
Alignment
How to convert PostgreSQL 9.4's jsonb type to float
Sql
Postgresql
Casting
Jsonb
Postgresql 9.4
What does casting to `void` really do?
C++
Casting
Compiler Warnings
Void
Suppress Warnings
How to emulate C# as-operator in Java
Java
Casting
Why is 30 the default length for VARCHAR when using CAST?
Sql
Sql Server
Casting
overriding bool() for custom class
Python
Class
Casting
Boolean
Python 2.x
Multi-character constant warnings
C++
C
Casting
Compiler Warnings
Portability
T-sql - determine if value is integer
Sql Server
Tsql
Casting
Integer
Isnumeric
What happens when I assign long int to int in C?
C
Casting
Integer
Variable Assignment
Long Integer
How to convert Swift Bool? -> String?
Swift
Casting
Dynamic casting for unique_ptr
C++
Casting
C++11
Smart Pointers
Unique Ptr
What's the difference between "as?", "as!", and "as"?
Swift
Casting
How do I convert a float to an int in Objective C?
Objective C
Casting
Floating Point
Should I explicitly cast malloc()'s return value?
C
Pointers
Casting
Why / when to use `intptr_t` for type-casting in C?
C
Memory Management
Types
Casting
Intptr
Dealing with an ArrayStoreException
Java
Arrays
Casting
Type Conversion
Why is there a performance warning on cast pointer to bool?
C++
Casting
Performance
PHP: casting to a dynamically determined type
Php
Casting
Change column type in pandas
Python
Pandas
Dataframe
Types
Casting
Using LINQ to convert List<U> to List<T>
C#
Linq
List
.Net 3.5
Casting
Reinterpret_cast vs. C-style cast
C++
Casting
Casting a result to float in method returning float changes result
C#
.Net
.Net 4.0
Casting
Floating Point
Why does javac allow some impossible casts and not others?
Java
Casting
Compiler Errors
Javac
C# difference between casting and as?
C#
Casting
Function pointers casting in C++
C++
Casting
Function Pointers
Difference in behavior while using dynamic_cast with reference and pointers
C++
Casting
Dynamic Cast
Cast delegate to Func in C#
C#
.Net
Casting
Delegates
How Expensive is Casting an Object?
C#
Casting
What are the differences between asInstanceOf[T] and (o: T) in Scala?
Scala
Casting
Is there a way to output the java data type to the console?
Java
Types
Casting
How do you cast a List of supertypes to a List of subtypes?
Java
List
Generics
Collections
Casting
Integer division: How do you produce a double?
Java
Casting
Integer Division
Parsing a binary file. What is a modern way?
C++
Casting
Binary
Cast syntax to convert a sum to float
Sql
Postgresql
Casting
Type Conversion
Postgresql 9.3
How to cast self to UnsafeMutablePointer<Void> type in swift
Swift
Pointers
Casting
Unsafe Pointers
Efficient way to convert strings from split function to ints in Python
Python
Variables
Casting
C#'s equivalent to VB.NET's DirectCast
C#
vb.net
Casting
Directcast
Ctype
Use of IsAssignableFrom and "is" keyword in C#
C#
asp.net Mvc
Casting
Unity Container
Reflection
Scala Divide two integers and get a float result
Scala
Casting
Floating Point
Integer
Ternary operator behaviour inconsistency
C#
Casting
Int
Conditional Operator
Short
Can't cast int to bool
C#
Casting
Int
Boolean
How to cast int to enum in C++?
C++
Casting
Enums
Shorter syntax for casting from a List<X> to a List<Y>?
C#
List
Casting
Ienumerable
TypeScript or JavaScript type casting
Casting
Typescript
Fastest way to convert string to integer in PHP
Php
Optimization
Casting
What is the difference between static_cast<> and C style casting?
C++
Casting
Static Cast
How to cast an Object to an int
Java
Object
Casting
Integer
How do I convert from int to Long in Java?
Java
Casting
Int
Long Integer
Casting a number to a string in TypeScript
Javascript
Casting
Typescript
Haskell: Converting Int to String
String
Haskell
Int
Casting
Convert Float to Int in Swift
Swift
Casting
Type Conversion
String was not recognized as a valid DateTime " format dd/MM/yyyy"
C#
.Net
Datetime
Types
Casting
Why don't Java's +=, -=, *=, /= compound assignment operators require casting?
Java
Casting
Operators
Variable Assignment
Assignment Operator
How can I cast int to enum?
C#
Enums
Casting
Int
Downcasting in Java
Java
Casting
Implicit type conversion rules in C++ operators
C++
Casting
Implicit
How do I convert a string to a number in PHP?
Php
Casting
Type Conversion
In Objective-C, what is the equivalent of Java's "instanceof" keyword?
Objective C
Types
Casting
Equality
Downcast
Change type of varchar field to integer: "cannot be cast automatically to type integer"
Postgresql
Casting
Postgresql 9.1
Fieldtype
Direct casting vs 'as' operator?
C#
Casting
How to check that a string is an int, but not a double, etc.?
Php
String
Casting
Types
Int
TypeScript enum to object array
Javascript
Arrays
Typescript
Enums
Casting
Android: How can I Convert String to Date?
Android
String
Date
Casting
Any difference between type assertions and the newer `as` operator in TypeScript?
Casting
Typescript
convert double to int
C#
.Net
Casting
Type Conversion
dynamic_cast and static_cast in C++
C++
Casting
Dynamic Cast
Value of type 'T' cannot be converted to
C#
.Net
Generics
Casting
How to insert a character in a string at a certain position?
Java
String
Casting
How to cast/convert pointer to reference in C++
C++
Pointers
Casting
Reference
Type Conversion
SQL: Subtracting 1 day from a timestamp date
Sql
Postgresql
Date
Casting
Timestamp
explicit casting from super class to subclass
Java
Casting
Classcastexception
Why use static_cast<int>(x) instead of (int)x?
C++
Casting
Static Cast
In C, why do some people cast the pointer before freeing it?
C
Pointers
Casting
Why does "The C Programming Language" book say I must cast malloc?
C
Casting
Malloc
Kernighan and-Ritchie
Assignment in an if statement
C#
Casting
If Statement
Cast Object to Generic Type for returning
Java
Generics
Casting
C# "as" cast vs classic cast
C#
Casting
C++ convert from 1 char to string?
C++
Casting
How should I cast in VB.NET?
.Net
vb.net
Casting
What is the difference between up-casting and down-casting with respect to class variable
Java
Casting
Class Variables
Downcast
Upcasting
No need to cast the result of findViewById?
Android
Casting
Findviewbyid
How do I cast a string to integer and have 0 in case of error in the cast with PostgreSQL?
Sql
Postgresql
Casting
Most efficient way to cast List<SubClass> to List<BaseClass>
Java
Inheritance
Casting
When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used?
C++
Pointers
Casting
C++ Faq
Do I cast the result of malloc?
C
Malloc
Casting
Convert base class to derived class
C#
Inheritance
Casting
Downcast
How to cast Object to its actual type?
C#
Object
Types
Casting
Typeof
Kotlin: How to work with List casts: Unchecked Cast: kotlin.collections.List<Kotlin.Any?> to kotlin.colletions.List<Waypoint>
List
Generics
Casting
Kotlin
How to convert a factor to integer\numeric without loss of information?
R
Casting
R Faq
Why does an NSInteger variable have to be cast to long when used as a format argument?
Objective C
Xcode
Casting
Nsinteger
Converting BigDecimal to Integer
Java
Integer
Casting
Bigdecimal
PHP String to Float
Php
String
Casting
Floating Point
How to avoid warning when introducing NAs by coercion
R
Parsing
Casting
Na
Cast int to varchar
Mysql
Sql
Database
Casting
Mariadb
Cast object to interface in TypeScript
Object
Typescript
Interface
Casting
Convert Int to String in Swift
String
Casting
Int
Converter
Swift
Converting double to integer in Java
Java
Casting
Double
Rounding
Cast List<T> to List<Interface>
C#
.Net
Interface
Casting
C# Float expression: strange behavior when casting the result float to int
C#
Casting
Floating Point
Int
Expression
Converting Integer to Long
Java
Reflection
Casting
Swift double to string
Swift
String
Casting
Double
Can I assume (bool)true == (int)1 for any C++ compiler?
C++
Casting
Boolean
SQL error "ORA-01722: invalid number"
Sql
Oracle
Plsql
Casting
Type Conversion
Import pandas dataframe column as string not int
Python
Pandas
Casting
Type Conversion
Dtype
How to cast List<Object> to List<MyClass>
Java
Generics
Casting
Difference between is and as keyword
C#
Casting
Build a function object with properties in TypeScript
Casting
Typescript
Function Object
Passing shared_ptr<Derived> as shared_ptr<Base>
C++
Casting
C++11
Shared Ptr
Smart Pointers
Converting an integer to a string in PHP
Php
String
Casting
Type Conversion
Integer
Any idea why I need to cast an integer literal to (int) here?
Java
Syntax
Casting
Double colon (::) notation in SQL
Sql
Postgresql
Casting
Cast a Double Variable to Decimal
C#
Casting
Decimal
Currency
Java Class.cast() vs. cast operator
Java
Generics
Casting
Compiler Warnings
When to use reinterpret_cast?
C++
Casting
Reinterpret Cast
Typescript: Index signature is missing in type
Casting
Typescript
Int to Char in C#
C#
Casting
Why can I type alias functions and use them without casting?
Types
Casting
Go
'is' versus try cast with null check
C#
.Net
Casting
Resharper
How do I provide custom cast support for my class?
C#
Casting
Does Java casting introduce overhead? Why?
Java
Performance
Casting
Static Typing
How do I convert between numeric types safely and idiomatically?
Casting
Rust
Numbers
Cast object to T
C#
Generics
Casting
TypeScript: Convert a bool to string value
Casting
Type Conversion
Typescript
Difference between casting and using the Convert.To() method
C#
Casting
Safely casting long to int in Java
Java
Casting
Differences in auto-unboxing between Java 6 vs Java 7
Java
Casting
Java 7
Unboxing
Why cannot cast Integer to String in java?
Java
String
Casting
Integer
Why do we assign a parent reference to the child object in Java?
Java
Oop
Inheritance
Casting
Upcasting
Why should casting be avoided?
C#
Java
C++
Casting
Efficient unsigned-to-signed cast avoiding implementation-defined behavior
C++
Casting
Integer
Language Lawyer
Integer Overflow
Why cast an unused function parameter value to void?
C
Casting
Void
Cast Int to Generic Enum in C#
C#
Generics
Casting
Enums
Is it possible to assign a base class object to a derived class reference with an explicit typecast?
C#
Casting
Derived Class
Base Class
Downcast
converting int to real in sqlite
Sql
Sqlite
Casting
Division
Get int value from enum in C#
C#
Enums
Casting
Int
Converting a pointer into an integer
C++
Gcc
Casting
64 Bit
32 Bit
Cast List<int> to List<string> in .NET 2.0
C#
Generics
Casting
Is it safe to delete a void pointer?
C++
Memory Management
Casting
Void Pointers
Casting CGFloat to Float in Swift
Casting
Swift
Cgfloat
PostgreSQL: ERROR: operator does not exist: integer = character varying
Postgresql
Casting
Integer
Varchar
(String) or .toString()?
Java
Casting
Is const_cast safe?
C++
Casting
Const Cast
java: How can I do dynamic casting of a variable from one type to another?
Java
Casting
Dynamic Cast
How do I add an integer value with javascript (jquery) to a value that's returning a string?
Javascript
Jquery
Casting
Difference between casting to String and String.valueOf
Java
Casting
Java converting Image to BufferedImage
Java
Image
Casting
Bufferedimage
What does :: do in PostgreSQL?
Postgresql
Syntax
Types
Casting
Typecast Operator
Explanation of ClassCastException in Java
Java
Casting
Classcastexception
Converting byte array to string in javascript
Javascript
Casting
'casting' with reflection
C#
Reflection
Casting
Casting LinkedHashMap to Complex Object
Java
Casting
Jackson
Linkedhashmap
Invalid cast from 'System.Int32' to 'System.Nullable`1[[System.Int32, mscorlib]]
C#
.Net
Casting
Type Conversion
Nullable
How to cast Object to boolean?
Java
Casting
Primitive
Regular cast vs. static_cast vs. dynamic_cast
C++
Pointers
Casting
How do I check if a string is a number (float)?
Python
Casting
Floating Point
Type Conversion
How to convert an array to object in PHP?
Php
Arrays
Object
Casting
com.google.gson.internal.LinkedTreeMap cannot be cast to my class
Java
Json
Casting
Gson
Why do C and C++ allow the expression (int) + 4*5?
C++
C
Casting
Language Lawyer
MySQL: Typecasting NULL to 0
Sql
Mysql
Casting
How to cast array elements to strings in PHP?
Php
String
Arrays
Casting
Casting variables in Java
Java
Casting
Can a cast operator be explicit?
C++
Casting
Operator Keyword
Explicit
How do I concatenate a boolean to a string in Python?
Python
String
Casting
Boolean
Concatenation
java.lang.ClassCastException: java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList
Java
Arraylist
Casting
Double cast to unsigned int on Win32 is truncating to 2,147,483,648
C
Visual C++
Casting
X86
Floating Point
Cast IList to List
C#
List
Casting
Ilist
Discard millisecond part from timestamp
Sql
Postgresql
Casting
Timestamp
Rounding
Why cast free's return value to void?
C
Casting
Free
Void
Legacy Code
C++ style cast from unsigned char * to const char *
C++
Constants
Casting
What is the difference between boxing/unboxing and type casting?
.Net
Casting
Boxing
Unboxing
Fastest way to convert a dict's keys & values from `unicode` to `str`?
Python
Casting
Types
How to cast a double to an int in Java by rounding it down?
Java
Casting
C#: Dynamic runtime cast
C#
C# 4.0
Casting
Casting array to IEnumerable<T>
C#
Arrays
Generics
Casting
Idiomatic way to do conversion/type assertion on multiple return values in Go
Casting
Go
Return Value
How do I safely cast a System.Object to a `bool` in C#?
C#
.Net
Casting
How to cast from List<Double> to double[] in Java?
Java
List
Casting
Double
Generic way to cast int to enum in C++
C++
Casting
Enums
What is the meaning of the type safety warning in certain Java generics casts?
Java
Generics
Warnings
Casting
Type Safety
When to use a Cast or Convert
C#
Casting
What are the rules for casting pointers in C?
C
Pointers
Casting
Primitive type 'short' - casting in Java
Java
Casting
Primitive
Short
Casting vs using the 'as' keyword in the CLR
C#
Casting
Clr
Convert boolean to int in Java
Java
Casting
Boolean
Int
Converting a double to an int in Javascript without rounding
Javascript
Casting
Floating Point
Int
Java casting in interfaces
Java
Interface
Casting
TypeScript casting arrays
Casting
Typescript
casting Object array to Integer array error
Java
Casting
Casting vs Converting an object toString, when object really is a string
C#
String
Casting
Parsing
When is an integer<->pointer cast actually correct?
C++
C
Pointers
Casting
std::lexical_cast - is there such a thing?
C++
Parsing
Casting
Std
C++ Standard-Library
How to have Java method return generic list of any type?
Java
List
Generics
Reflection
Casting
How to convert string to boolean php
Php
String
Casting
Boolean
error: cast from 'void*' to 'int' loses precision
C++
Casting
Void Pointers
C# Cast Entire Array?
C#
Arrays
Casting
Why doesn't this reinterpret_cast compile?
C++
Casting
Reinterpret Cast
Casting string to enum
C#
String
Casting
Enums
@Value annotation type casting to Integer from String
Java
Spring
Casting
Annotations
Property Placeholder
How do I convert Int/Decimal to float in C#?
C#
Casting
Floating Point
Why is this cast redundant?
C#
Casting
Overloading
How can I cast custom type to primitive type?
Javascript
Typescript
Types
Casting
User-defined conversion operator from base class
C#
Casting
Why does '(int)(char)(byte)-2' produce 65534 in Java?
Java
Casting
casting non const to const in c++
C++
Types
Casting
Constants
Cast Double to Integer in Java
Java
Casting
Cast Int to enum in Java
Java
Casting
Enums
Ordinal
Performance hit from C++ style casts?
C++
Performance
Casting
How do I avoid implicit conversions on non-constructing functions?
C++
Function
Casting
Implicit Conversion
Cast LINQ result to ObservableCollection
C#
Linq
Casting
How to Cast Objects in PHP
Php
Object
Casting
What is the difference between casting and conversion?
C#
Type Conversion
Casting
Convert double to float by cast or Convert.ToSingle()?
C#
.Net
Casting
Type Conversion
Does it make sense to use "as" instead of a cast even if there is no null check?
C#
Casting
Type Conversion
If I use C-Style casts in my C++ project, is it worth refactoring to C++ casts?
C++
Refactoring
Casting
Order varchar string as numeric
Postgresql
Types
Casting
Indexing
Integer
C++ cannot convert from base A to derived type B via virtual base A
C++
Casting
Downcast
Virtual Inheritance
Static Cast
Proper way of casting pointer types
C++
Pointers
Casting
Reinterpret Cast
Static Cast
How to cast the size_t to double or int C++
C++
Casting
Double
Size T
Why does Java let you cast to a collection?
Java
Collections
Interface
Casting
In C#, is it possible to cast a List<Child> to List<Parent>?
C#
Inheritance
Casting
Does a type assertion / type switch have bad performance / is slow in Go?
Casting
Go
Type Conversion
Type Assertion
string = string + int: What's behind the scenes?
C#
String
Casting
Integer
What is the difference between static_cast and reinterpret_cast?
C++
C
Casting
Struct
Can I check if a variable can be cast to a specified type?
C#
Casting
Type Conversion
How can I cast Integer to String in Scala?
Scala
Casting
What is the difference between casting to `float` and adding `f` as a suffix when initializing a `float`?
C
Casting
Floating Point
Angular cast select value to int
Forms
Angular
Casting
implicit operator using interfaces
C#
Generics
Compiler Construction
Casting
Implicit Conversion
Pandas reading csv as string type
Python
Pandas
Casting
Type Conversion
Dtype
PostgreSQL : cast string to date DD/MM/YYYY
String
Postgresql
Date
Casting
Why do round() and ceil() not return an integer?
C++
C
Casting
Rounding
Purpose of a ".f" appended to a number?
C++
Syntax
Casting
Difference between covariance and upcasting
C#
Casting
Covariance
Typecasting vs function to convert variable type in PHP
Php
Casting
How do I convert a single char to a string?
C#
String
Casting
Char
How to cast to a type alias in Go?
Types
Casting
Go
C job interview - casting and comparing
C
Casting
Char
Int
Why does Java require an explicit cast on a final variable if it was copied from an array?
Java
Arrays
Casting
Int
Byte
Comparator with double type
Java
Casting
Double
Comparator
Extract date (yyyy/mm/dd) from a timestamp in PostgreSQL
Sql
Postgresql
Casting
Timestamp
Type casting for user defined objects
Php
Casting
Cast class into another class or convert class to another
C#
Casting
Class
Type Conversion
How to cast ArrayList<> from List<>
Java
Generics
Casting