Added a return type to the getValue() function in the Type class.