A float value can be assigned to an integer variable but an implicit conversion occurs when compiler forces a float value to be assigned as an integer.
The digits after the decimal notation in the float value get lost after assigning a float to an integer.
Edit: casting -> conversion
Thanks R..