Value parsing based on the type information.