remove unnecessary type conversion