Most voted "cast" questions
Casting is a process where an object type is explicitly converted to another type, if conversion is allowed.
Learn more…76 questions
Sort by count of
-
1
votes1
answer77
viewsUtility of the coercion operator reinterpret_cast
What is the coercion operator for reinterpret_cast?
-
1
votes1
answer111
viewsProblems Converting Session to Class in C#
I have the following variable List<MyFile> xmlDisponivel = new List<MyFile>(); This variable is a list of the following class public class MyFile { public string FileName { get; set; }…
-
1
votes1
answer35
viewsConversion c# wpf Icollection and Observablecollection
I have a list Icollection Generica and need to convert to Observablecollection, so I do not know which class is to convert to ObservableCollection<MyClass>. I’ve been searching for that answer…
-
1
votes1
answer69
viewsIs there a difference between "new" and "reinterpret_cast" for a memory buffer?
I wonder if there is any difference in the final product of these two codes : //------ Declaração curta class ClasseA { public: int valor; Classe() { iniciar(); } ClasseA * iniciar() { valor = 10;…
-
1
votes0
answers30
viewsNETBEANS - JAVA - DERBY - Error Retrieving Byte for Imageicon
All right, all right? I have stored a BLOB file and am looking to do recovery of it, is a JPG. Below is the Resultset of the same: byte[] bin = null; // (2) ResultSet rs; try { rs =…
-
1
votes2
answers138
viewsAutomatic cast with Typescript?
To the point: There is a way to cast automatically using an interface as a model in Ionic (Typescript + Angular 5)? If not, you can make Lint recognize that an object coming from the server is not…
-
1
votes1
answer333
viewsThe Operator + is Undefined for the argument type(s) Charsequence, int
I’m trying to concatenate a text into CharSequence with int, but java warns that it is not possible to do this conversion by saying: The Operator + is Undefined for the argument type(s)…
-
1
votes1
answer821
views -
1
votes0
answers46
viewsProblem with Where
I’m using Mariadb and I have a clause problem WHERE bank. The query is inside Excel that brings me database periods through the month filter. But I was asked to change it to a time period, only it’s…
-
1
votes0
answers201
viewsEXCEL - VBA - SQL - Doubt in the query using CAST
Hello, First I apologize to ADM if there is any error in formatting the question, I am novice here rsrs. I have a question in the QUERY query using MAX and CAST Goal: Return the highest value in the…
-
0
votes1
answer593
viewsJava cast and convert
How do I convert ValueCallback<Uri> for ValueCallback<Uri[]>?
-
0
votes1
answer35
viewsConversion of value from the database to monetary value with error
In the database(SQL) I have a field called Valor which is a decimal and contains the following value: 21581 that would be R$215.81 But in doing the casting of this value he is returning…
-
0
votes0
answers66
viewsConvert a variable to a reflect. Type
I started learning Go recently. I want to be able to save one type of data into one variable, and convert another variable to it. I know that one way to save a data type is by using reflect.Type. i…
-
0
votes0
answers45
viewsCAST in multiple columns to average
I have several columns in a csv table, I imported the table into mysql, but when I import into mysql I have to do this import as varchar for all data. If I do a CAST in these columns and then take…
-
0
votes1
answer562
viewsError conversion type Object to int
I am making a select in the database, using Execscalar returning an Object but I cannot cast this value returned to integer. public static int ConsultaPDVsAtivos() { NpgsqlCommand sql = new…
-
0
votes1
answer130
viewsError converting String to Integer type in Nodejs
in Nodejs I am trying to check the value of a variable of type String, but for some reason nothing is working. Example: var aaa = "0"; // Eu recebo essa variável como string (não dá para mudar o…
-
0
votes1
answer80
viewsConvert query return to Integer
How can I cast a query for Integer? Follow what I tried to execute. public Integer validaPrincipal(String usuario, Integer tipo) { try{ return (Integer)…
-
0
votes2
answers422
viewsProblems converting integer to string (stringstream) c++
#include <iostream> #include <string.h> #include <sstream> using namespace std; int main(int argc, char *argv[]){ int n, aux; string hexa=""; stringstream hexa_aux; cin >> n;…
-
0
votes0
answers44
viewsCast problem
I have the following classes: public class Hotran { @Getter @Setter private String codEmpresa; @Getter @Setter private String nomeEmpresa; @Getter @Setter private Long voo; @Getter @Setter private…
-
0
votes2
answers138
viewsC# conversion error
I have the most generic class Account and another ContaPoupaça who inherits from that class Conta. In this daughter I have an interface called ITributavel, because this class beyond the methods and…
-
0
votes1
answer211
viewsCast in void pointer
The code below was working as expected, but changed the type of info in the structure Retangulo* for void* and tried to cast anyway but I continue with the following mistake: t.c: In function…
-
0
votes1
answer404
viewsHow to cast in Java?
This model is working, look at the figure! You may notice that you are concatenating two String variables as you can see in the figure below; My problem now is to be able to concatenate an Integer…
-
0
votes1
answer40
views -
0
votes1
answer33
viewsUPDATE WITH CASE DOESN’T WORK
I am working with a bunch of data (Postgres) on vestibular and I was looking to do an update joining two tables and using UPDATE CASE WHEN THEN. I was relating the two tables through their ids and…
-
0
votes0
answers10
viewsAndroid Viewholder Classcastexception
I implemented a message listing for a chat. The Sentry is receiving an exception that occurs in production, I have tried to simulate, but without success. Error ClassCastException java.lang.Integer…
-
-1
votes3
answers1056
viewsHow to convert an integer vector to an integer-only variable?
I need to convert an integer vector to a single variable, example: int teste[] = {2, 3, 5, 6}; for int result = 2356; how to do this? NOTE: I don’t have the vector size (+ - dynamic)…