Added check of values types.

Signed-off-by: Sergey S. Smirnov <SergeySSmirnov@mail.ru>