fixed bug with generic implicit conversion