modified implicit narrowing cast to explicit cast