Fix Value class add implicit cast, add as method in value, add new excep...

Fix random value when implicit cast is done, add new exception, and improve message error for Value class