solve Generic.Record cast to T problem