Re this question: Why can't I pass a int to a float in the same statement?
The original question was quite unclear and led to some speculative comments and one answer which (correctly) addressed the question of typecasting primitives and how that works.
The OP then added sample code to the question to illustrate their situation. This revealed the issue wasn't casts or type conversion at all, but a compiler error because a method was being called with an incorrect parameter count. However, before anyone posted an answer, the question was again edited, removing the code and leaving the original, unclear question.
Should I edit the question to reinstate the code, so a correct answer can be possible? I originally thought I should, but the OP may very well have had good reason to remove the code from the question (e.g., copyright issues). As-is, I think the question should probably be deleted.