Implemented expected type for read function.