use type casting befor assignement