type casting issue